KK, is there a solution to following?
I think this question can pop up some day. I have come to this quiz myself after experiments and don't yet have a solution.
Controlling field is a checkbox. When superadmin clicked 'Yes' 2 other fields are conditionally displayed.
Superadmin is logging out. Admin logs in.
Admin must not be able to change controlling checkbox. Admin can only edit and save 2 visible conditional fields.
Admin must not see controlling field hidden via CSS, because it can not be changed by Admin.
- Code: Select all
<cms:editable
type='checkbox'
name='has_usage_limit'
label='Limit maximum applications?'
opt_values='Yes'
not_active=my_cond_test
/>
<cms:func _into='my_cond' has_usage_limit=''>
<cms:if "<cms:is 'Yes' in=has_usage_limit />">show<cms:else />hide</cms:if>
</cms:func>
<cms:editable
name='maximum_applications'
label='How many times the Coupon can be used'
desc='Completely disable Coupon by un-publishing this page'
type='text'
search_type='integer'
validator='non_zero_integer'
width='155'
not_active=my_cond
/>
<cms:editable
name='applications'
label='How many times'
type='checkbox'
opt_values='Yes'
not_active=my_cond
/>
I think this question can pop up some day. I have come to this quiz myself after experiments and don't yet have a solution.