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

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mohomar99
User
Posts: 17

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

Post 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?


arbei
User
Posts: 9286

Post 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.)

mohomar99
User
Posts: 17

Post 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?


arbei
User
Posts: 9286

Post by arbei »

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


mohomar99
User
Posts: 17

Post 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?


mobhar
User
Posts: 11660

Post 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.


Post Reply