- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2024 04:58 AM
I have below code in onSubmit client script:
var flag = 0;
if (something is true) {
flag = (flag + 1);
}
if (flag > 0){
return false;
} else {
return true;
}
This is working fine in Native view but not on Portal. Kindly help 🙂
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2024 05:05 AM
Hi @nirwan_ritik ,
Please check the UI Type selection, it should be "All".
-Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2024 05:03 AM
Hi,
Can you check the ui type field on the Catalog client script. It should be set to All.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2024 05:06 AM
Hi,
UI Type is selected to All.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2024 05:07 AM
Add alert to see if the script is even running or not.
Remove the if conditiona nd just add alert('test')l in the script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2024 05:05 AM
Hi @nirwan_ritik ,
Please check the UI Type selection, it should be "All".
-Thanks,
AshishKMishra
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution