
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2023 01:21 AM
Hello community,
I attempting to create a client script that reloads a form onChange. When the State field changes to a specific value (e.g. 7), reload the page. However, the script reloads for every state. Also, I attempted to add condition where Category is a specific value (e.g. Application)--it did not work.
Assistance is appreciated.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading) {
return;
}
if ((newValue == '7' ));
location.reload();
}
Regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2023 01:29 AM - edited 07-16-2023 01:29 AM
Hello @Desmo
Plz Correct your Script with mentioned below:-
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if(newValue == '7'){
location.reload();
}
}
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2023 01:29 AM - edited 07-16-2023 01:29 AM
Hello @Desmo
Plz Correct your Script with mentioned below:-
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if(newValue == '7'){
location.reload();
}
}
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh