On which trigger you placed the set_item statement?
Place it in WHEN_LIST_CHANGED trigger of FIELDA
instead of colour code r100g100b55 use r100g100b75
Use the following code in your List (When list changed trigger)
IF :list_value = 'XX' THEN
SET_ITEM_INSTANCE_PROPERTY('B',CURRENT_RECORD,VISUAL_ATTRIBUTE,'YOUR VISUAL ATTRIBUTE');
ELSIF :list_value = 'YY' THEN
SET_ITEM_INSTANCE_PROPERTY('B',CURRENT_RECORD,VISUAL_ATTRIBUTE,'YOUR DEFAULT VISUAL ATTRIBUTE');
And if you have problem with making a field required or not then...
You have to set the property in both 'B' field WHEN VALIDATE ITEM and your list's WHEN LIST CHANGED trigger...
Hope this will help you...
I have done the above mentioned steps, but the problem is I am not able to get the exact yello colour from the fill pattern.
Instead of your yellow assign some different colour (that may be easily identifiable) for that field and confirm first the trigger fires correctly or not. Then we can see about your yellow problem.
The Trigger is firing perfectly, I have checked with other colors.
The functionality is working, the issue is with color matching.
Is there any way I can get the visual_attribute of other required feilds and use that in fieldB using set_item_instance_property
I used the below to check
it returns null.
Is your color code in visual attribute is r100g100b50 or r100g100b55....? and also mention your forms version
the color code is r100g100b55, forms version is 6i
There is no color code like r100g100b55 in forms 6i.
Possibilities are r100g100b75 or r100g100b50 only. I have already mentioned this on my previous post.
I achieved the requirement by using
in place of