Hi Community,
For one of the system user, we have one custom action which is visible and editable only when certain conditions meet.
Code :
When everything is working user can see the highlighted action and fields on which the condition is applied :
Issue : When we remove any one of the field let's say OrderType(lookup) from Section List view Action is not visible even when the conditions meet.
Please see the below image when Order Type is removed from section list view.
Error :
In statusordertype = selectOrder.get("UsrOrderType"); It is taking statusordertype as undefined.
But UsrOrderType is filled.
So Complete scenario is this that when the field on which the condition are applied are visible on the section List view Custom Action is Visible but the moment we removed the field from section list view It is throwing error even when the field is filled in.
This is not the case with Admin.
Please help me to understand the root cause of this issue ?