Avatar

Level 7

Something like this will work:

if (HasValue($)) then

     vYear.rawValue = $.rawValue

     vYear.access = "protected"

else

     vYear.rawValue = ""

     vYear.access = "open"

endif

That will cause whatever field has this code to protect another field and give it the same value if it isn't empty, and clear/open the field if it is.