- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2020 12:17 PM
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.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2020 12:21 PM
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.
Michael D. Jones
Proud member of the GlideFast Consulting Team!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2020 12:21 PM
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.
Michael D. Jones
Proud member of the GlideFast Consulting Team!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2020 12:52 PM
This would be your business rule:
And then this would be your UI Policy. This would be on the sc_req_item table:
If this was helpful or correct, please be kind and remember to click appropriately!
Michael Jones - Cloudpires
Michael D. Jones
Proud member of the GlideFast Consulting Team!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2020 12:55 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2020 02:33 PM
hey Hi ,
i have reproduced this scenario, please refer SS
Step1:
Create a BR on sc_req_item table.
when to run condition as below:
2. Now in Action set flag to true refer SS below:
Incase this resolves your query then please mark my response as correct and helpful.
Regards,
Ajay