Prompt user to input a field

XYZ
Tera Contributor

Hi All,

Needed quick help to prompt user to input a field from business rule.

 

Thanks!

8 REPLIES 8

Yash Agrawal1
Tera Guru

Hello Xyz, Why you cant make field Mandetory,If you make a field mandetory where you want input,System will automatically prompt user to provide input.

You can also Use OnSubmit Client Script with the below code to prompt the user if you dont want to mak the field mandetory

if(g_form.getValue('field_name')=="")

{

     alert('Please provide the value for field fieldname');

return false; // to cancel the submission

}

}

actually the field that we want to set as mandatory is sort of code...which is not available to everyone, the code is only available to the one who is approving the request, so the ask is it should get mandatory only when approver is trying to approve it, till that point it should not be mandatory. I would really appreciate if u can help me to achieve this via business rule or via some another alternative.

 

Thanks!!

Ohk,

On which table ,you are asking for appproval and how you are creating capproval through workflow or from anywhere else?

Also when you are triggering the approval then only you are making that field visible for approvers?

Please let me know

vaishnavi30
Tera Contributor