Using Expression Builder in LSA, I am trying to restrict selection of 'Benefit Type' to only one value, 'HL'.
There are 11 fields, INQ_PLAN_TYPE1 - INQ_PLAN_TYPE11 and I am trying to restrict them so that only one value can be inquired upon giving 'ALL_ACCESS', otherwise 'NO_ACCESS'
I have tried different ways, but none worked. The most logical (to me) looks like this:
if(form.INQ_PLAN_TYPE1=='HL'||form.INQ_PLAN_TYPE2=='HL'||form.INQ_PLAN_TYPE3=='HL'||form.INQ_PLAN_TYPE4=='HL'||form.INQ_PLAN_TYPE5=='HL'||form.INQ_PLAN_TYPE6=='HL'||form.INQ_PLAN_TYPE7=='HL'||form.INQ_PLAN_TYPE8=='HL'||form.INQ_PLAN_TYPE9=='HL'||form.INQ_PLAN_TYPE10=='HL'||form.INQ_PLAN_TYPE11=='HL')
'ALL_ACCESS,'
else
'NO_ACCESS,'
When I refresh the cache and go back in using the role/security class that I am working on, I get 'security violation', even when I only select 'HL'.
I imagine my syntax is wrong. Has anyone done something similar with success?
Thanks!