We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to get Values from Custom with Label Variable ? How to set limit of values and restrict submit

S Deva
Tera Contributor

There is a variable Custom with Lable for selecting multiple change requests. It should have at least 3 values before the submit form. 

 

I have added script : 

 

var Changes = g_form.getvalue("field_name").toString().split(',');

var changes_length = Changes.length;

if(changes_length>=3){

return true;

}

return false;

 

But this is always return false . How to achieve this can anyone please help ?

11 REPLIES 11

Hi @jaheerhattiwale , great solution, thanks so much for the help! 🙂

Nikhil Singh1
Tera Contributor

@jaheerhattiwaleThanks for your reply. How to check if three records are added in the Custom with Label variable?