The CreatorCon Call for Content is officially open! Get started here.

set value based on catalog item

Baggies
Kilo Guru

On the RITM form, I have added the 'billable' field.
I want to have the default value set to 'true' only for specific catalog items, so that for example, if the catalog item on the RITM form (cat_item) is either 'Laptop', or 'Headset' or 'Computer', then the default value should be set to "true". It is a true/false type field.

Acceptance criteria would be that the value of 'true' loads for these items, and the 'billable' field is visible.

The fulfiller should be able to change the value of 'Billable' to 'false' if required.
If the catalog item is not one of the ones listed above, then the default value of 'Billable' should be 'false', and the field hidden.

I thought it would be easy to do this on a scripted UI Policy, whereby I can select the items this would apply to.

Many thanks in advance.

 

 

 

1 ACCEPTED SOLUTION

Michael Jones -
Giga Sage

You would need to create a before business rule on insert to check if the catalog item is one of the ones you want, and then set the value of the field on the RITM appropriately. You would then create UI Policies and Actions to show / hide your field based on its value. 

If this was helpful or correct, please be kind and remember to click appropriately. 

Michael Jones - Cloupires. 

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

View solution in original post

5 REPLIES 5

Michael Jones -
Giga Sage

You would need to create a before business rule on insert to check if the catalog item is one of the ones you want, and then set the value of the field on the RITM appropriately. You would then create UI Policies and Actions to show / hide your field based on its value. 

If this was helpful or correct, please be kind and remember to click appropriately. 

Michael Jones - Cloupires. 

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

Michael Jones -
Giga Sage

This would be your business rule: 

find_real_file.png

 

find_real_file.png

 

And then this would be your UI Policy. This would be on the sc_req_item table: 

find_real_file.png

find_real_file.png

 

If this was helpful or correct, please be kind and remember to click appropriately!

Michael Jones - Cloudpires

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

Knight Rider
Mega Guru

Hi Baggies,

I believe this BIllable field  is on RITM.

 Can you try creating a UI Policy on table level like below snippet

 

 

And you can add UI policy action for your Billable field.

(OR)

You can write a UI policy script to make it Visible and Set Value to True.

 

Please let me know if you have any questions!!!

-Vinay.

Ajay_Chavan
Kilo Sage

hey Hi ,

i have reproduced this scenario, please refer SS

find_real_file.png

 

Step1:

Create a BR on sc_req_item table.

when to run condition as below:

find_real_file.png

2. Now in Action set flag to true refer SS below:

 

find_real_file.png

 

Incase this resolves your query then please mark my response as correct and helpful.

Regards,

Ajay

 

Glad I could help! If this solved your issue, please mark it as ✅ Helpful and ✅ Accept as Solution so others can benefit too.*****Chavan A.P. | Technical Architect | Certified Professional*****