Page 1 of 1

How to change the position of warning message? (v2022)

Posted: Sat Feb 04, 2023 8:53 pm
by mohomar99

Hi

I use setfailuremessage method to show a warning message. I need the warning message to be centered in the center of the page, not alighed left or right ... any thoughts?


Re: change the position of the warning message

Posted: Sat Feb 04, 2023 10:27 pm
by arbei
  1. Which version of PHPMaker are you using?
  2. Did you use the advanced setting Use Bootstrap Toast message? (The setting controls if an error message is displayed as Bootstrap Alert or as Bootstrap Toast which affects the position of messages.)

Re: How to change the position of warning message?

Posted: Sun Feb 05, 2023 12:37 am
by mohomar99

Can I center it?

I think phpmaker 2022 support toast messages.

Could you please send sample code how to use it in server script Row_inserting?


Re: How to change the position of warning message? (v2022)

Posted: Sun Feb 05, 2023 8:59 am
by arbei

If you use toast, there is no center position, see AdminLTE Toasts Plugin -> position.


Re: How to change the position of warning message? (v2022)

Posted: Sun Feb 05, 2023 9:26 pm
by mohomar99

Could you please send sample code how to use it in server script Row_inserting?

Do u have sample CSS code for it Please?


Re: How to change the position of warning message? (v2022)

Posted: Mon Feb 06, 2023 2:47 pm
by mobhar

As mentioned above, there is no center position. Toast position can only be one of the following options:

  • topRight,
  • topLeft,
  • bottomRight,
  • bottomLeft.

In addition, from the link above, you should control its position via jQuery code, and not via server event.