Input checking within a multi-line variable set

Takumi Togashi
Tera Expert

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.

TakumiTogashi_0-1694501900841.png

 

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.

1 ACCEPTED SOLUTION

Samaksh Wani
Giga Sage
Giga Sage

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

 

 

View solution in original post

4 REPLIES 4

Samaksh Wani
Giga Sage
Giga Sage

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

 

 

@Samaksh Wani 

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.

Can you send me the screenshot of script which you wrote?

 

@Takumi Togashi 

@Samaksh Wani 

Sorry.
I checked the script and the conditions were wrong.
It worked correctly with the information you provided.

I have included the script below.

TakumiTogashi_0-1694503821808.png