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

Make field mandatory on submit (incident)

Snow Tomcal
Tera Expert

Hi All,

I have a field on the incident record that I want to make mandatory on form submitting.

I created a client script (onSubmit):

function onSubmit(){

g_form.setMandatory('field_name', true);

}

when I'm submitting it's turning to mandatory but after a few seconds the red asterisk disappears.

Does anyone know how to fix this?

 

Thanks 🙂

1 ACCEPTED SOLUTION

Raghav Sharma24
Giga Patron

Try below:

 

function onSubmit(){

g_form.setMandatory('field_name', true);

return false;

}

View solution in original post

2 REPLIES 2

Raghav Sharma24
Giga Patron

Try below:

 

function onSubmit(){

g_form.setMandatory('field_name', true);

return false;

}

It works, Thanks!