Reload page by onchange client script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2024 11:50 PM
below code not working.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
//Type appropriate comment here, and begin script below
if (newValue == 1)
location.reload();
}
15 REPLIES 15
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2024 01:36 AM - edited ‎03-08-2024 01:37 AM
Hi @Rosy14 ,
If below script not work then try in different browser incognito by clearing cache.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if(newValue == '1'){
location.reload();
}
}
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand