How to custom the confirmation message after clicked the submit button on popup dialog for add/edit record?

QuestionsHow to custom the confirmation message after clicked the submit button on popup dialog for add/edit record?
Wai asked 2 years ago

I would like to custom the confirmation message ( depends on the user inputted values in the form ) after clicked the submit button on popup dialog for add/edit record. Is it possible?

2 Answers
Abu answered 2 years ago

Hello,

You can use phpgrid_msg() function in callback events of on_insert, on_update.

https://www.gridphp.com/docs/grid-events/

https://www.gridphp.com/demo/demos/editing/bulk-edit.phps line 150

Wai answered 2 years ago

Hi,

Thanks for your reply. Is there any side effect after running phpgrid_msg() ? I found the codes after phpgrid_msg() in on_insert() & on_update() cannot be executed and on_insert() & on_update() will not continue to perform default grid function although I set “true” in third parameter.

$e[“on_insert”] = array(“add_client”, null, true);

$e[“on_update”] = array(“update_client”, null, true);

Your Answer

17 + 10 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?