Is it possible to hide values in drop down field on the current form using business rule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-09-2016 09:21 AM
need to hide 1-critical value on Priority field using B.R. on current form for current user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 01:12 AM
Hi Chuck,
Can you confirm is there any way to hide/Show drop down field values based on condition using Business Rule?
I need to write script in Business Rule.
Please confirm.
Thanks in advance,
Pandimeena R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 01:44 AM
Hi Meena,
you can achieve this using Client Script using g_form.addOption & g_form.removeOption Methods
you can Include your condition in if else statement
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 01:52 AM
Hi Shyam,
I want to create Business Rule not Client Script.
Please Suggest.
Thanks,
Pandimeena R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 04:28 AM - edited ‎12-27-2022 04:36 AM
No. You cannot achieve this by Business Rule which is server side scripting. Your requirement can be achieved by Client side scripting. You can use client script.
Understand the purpose and difference of Business Rules & Client Script.
A business rule is a server-side script that runs when a record is displayed, inserted, updated, or deleted, or when a table is queried.
Client scripts allow the system to run JavaScript on the client (web browser) when client-based events occur, such as when a form loads, after form submission, or when a field changes value. Use client scripts to configure forms, form fields, and field values while the user is using the form.
If your question is solved, please close the topic by marking my answer "Accept as Solution". This will help others searching for a similar question and will remove the topic from the unsolved list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2022 01:56 AM
With BR you cannot remove and add options , best way is to with client script
Regards,
Shyamkumar