On a Structured Page, we have a text field called ContactUs, the Form Control for this field is a Drop-down list.
The drop down list of Options is manually uploaded from values from an external data source.
The first value in the drop down list is; 0;-- Please Select Your Program/Service --
We have a repeater on a page with a Web part contol ID value of Contact411
On the Visibility area of the repater, I want to enter macro code that checks the value of the ContactUs field and if it is 0 (zero), then hide the repeater.
What syntax is required to do this?
Thank you.
In the Visibility set the macro like so:
{%CurrentDocument.GetValue("ContactUs").ToString() != "0"|(identity)GlobalAdministrator%}
This works as well;
{% CurrentDocument.GetValue ("ContactUs") != 0 |(identity)GlobalAdministrator%}
Thank you Brenden as always for the quick response.
Please, sign in to be able to submit a new answer.