This topic is locked

Popup Modal on field change

3/25/2016 5:20:12 PM
PHPRunner General questions
A
asawyer13 authorDevClub member

I have a situation where if the user changes a specific field in my form, say price, I need to popup a modal form and ask whether they want to change just that record or multiple records. If they indicate multiple, then I need to run an update statement to update some values in my database.
Hopefully I'm describing it properly.
Is there some reasonable way to do that?
Thanks

Sergey Kornilov admin 3/27/2016

Sure, here is an example of adding your own action on field value change:

https://xlinesoft.com/phprunner/docs/show_dropdown_list_of_us_states.htm
To display something in popup window you can use Javascript's alert() function:

http://www.javascriptkit.com/javatutors/alert2.shtml