- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 02:12 AM
Hi, we have 3 to 4 variables with yes/no type
when any variable is changing with Yes/No then one pop up message should need to appear(Same pop-up for all the variables). we have written for Single variable and its working fine with below script.
I tried with multiple Variables, but it's not working. First is it possible to add multiple variables in one onChange client script? if so can anyone help me in this.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 02:37 AM
No. A Client script is triggered on an action on the form (you want it to trigger 'onChange'. You can only select one field that changes, so you will need to create an onChange client script for each variable. You can check within a script if certain values are set, but that script will still need to be triggered onChange of one field.
What isn't working when you create it for all 4 fields, because if it works on one, it should work on the others as well.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 02:56 AM
Hi @wefw ,
The onChange client script triggers when a specific field value changes. It cannot monitor changes for 3–4 variables in a single script. It is recommended to create separate onChange client scripts for each variable. If any variable value changes, the corresponding script will display the message.
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful."
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 03:39 AM
Hello @wefw
- A single onChange client script will not work for all 3-4 variables, as the onChange client script is specifically triggered when the value of a particular field changes.
- To address this, you need to create a separate onChange client script for each variable to ensure the desired functionality works correctly.
Hope this helps!
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"
Thank You
Juhi Poddar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 05:14 AM
The requirement was to show a message whenever one of the 4 variables changes, so how is this answering the question? A form is not reloading when you change a value.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 06:15 AM
I don't want to show info message, whenever i am changing that particular variable then one popup should display, if we not confirming that message then value will be set to old value