Based on conditions I need to set varaiable in a different catalog task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
i have a variable site code it should be populate in the task 1 when condition met I have another virable like new location if we select new location then only site code need to populate.
based on this two other catalog task in that if it is new location here site code variable should be read only.
how can I achieve this? Thanks in advance.
note-: I have given the flow designer to the catalog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Did you try UI policies on you catalog item?
The catalog UI policies can be applied at task level as well, if it is not working share screenshots.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
yes tried ui policies but same variable on different conditions that is getting the conflict
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Try to reorder your UI policies, and also check the behaviour on "reverse if false".
One should be of order 100 and another 200.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Feroz1
you might handle this with a Catalog Client Script + Catalog UI Policy — Flow Designer alone won’t control the behavior of variables on the form.
Create a Catalog Client Script (onChange) on the New Location variable:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading) return;
if (newValue == 'true') { // adjust if it's a choice or reference
g_form.setValue('site_code', 'YOUR_DEFAULT_VALUE');
} else {
g_form.clearValue('site_code');
}
}
Make Site Code read-only if New Location
is selected
- Create a Catalog UI Policy:
- Condition: New Location == true
- Action: set variable Site Code → Read Only = true
This way:
- If user selects New Location, the Site Code gets populated automatically.
- At the same time, the UI Policy ensures Site Code is read-only.
- If New Location is not selected, Site Code stays editable.