- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 11:58 PM
There are variables that are entered manually within a multi-line variable set and variables that are automatically entered based on those entered variables.
Variables that are entered automatically are read-only and cannot be changed.
If the variable that is automatically populated is empty when I press add, I would like to display an error and prevent the record from being added.
If there is a better way to do this, please let me know.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 12:06 AM
Hello @Takumi Togashi
You can write a Client Script In your UI page :-
var newField = gel("fieldname").value;
if(newField===""){
alert("Your msg");
return false;
}
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
09-12-2023 12:06 AM
Hello @Takumi Togashi
You can write a Client Script In your UI page :-
var newField = gel("fieldname").value;
if(newField===""){
alert("Your msg");
return false;
}
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
09-12-2023 12:13 AM
Thanks for the answer.
Where is the UI page?
I have tried to create a catalog client for onSubmit within a multi-line variable set, but it did not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 12:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2023 12:30 AM
Sorry.
I checked the script and the conditions were wrong.
It worked correctly with the information you provided.
I have included the script below.