Is it possible to hide values in drop down field on the current form using business rule?

shalinikacham
Kilo Expert

need to hide 1-critical value on Priority field using B.R. on current form for current user.

10 REPLIES 10

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

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

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar

Hi Shyam,

 

I want to create Business Rule not Client Script.

Please Suggest.

 

Thanks,

Pandimeena R

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.

 

shyamkumar VK
Kilo Patron

With BR you cannot remove and add options , best way is to with client script

Please mark this as helpful and accept as a solution if this resolves your Ask.
Regards,

Shyamkumar