Stop onchange client script trigger when the same filed value updated in on load client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2025 07:15 AM
I am trying to update a filed value in onload client script, and the same filed has onchange client script and its also triggering when onload. So how can we stop this trigger.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2025 10:27 PM
Hi Madhusudhan,
Option 1: Use an onChange() client script instead of onLoad() to update the field value. This prevents duplicate execution since onChange() runs both on field 'change' and form 'load'.
Option 2: Use only an onLoad() client script to update the field and deactivate the onChange() client script to avoid unnecessary execution.
Regards,
Vasanthi Lanakda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2025 05:32 AM
Thanks I will try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2025 12:40 AM
Hi Madhusudhan,
Option 1: Use an onChange() client script instead of onLoad() to update the field value. This prevents duplicate execution since onchange() runs both on field change and form load.
Option 2: Use only an onLoad() client script to update the field and deactivate the onChange() client script to avoid unnecessary execution.
Regards,
Vasanthi Lankada