Prompt user to input a field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 09:01 PM
Hi All,
Needed quick help to prompt user to input a field from business rule.
Thanks!
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 10:17 PM
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
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 10:36 PM
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!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2022 10:32 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2022 04:13 AM
Hi
This link should be helpful.
Thanks,