I am trying to show Radio buttons for form field using macro depending on user role. Here is code
if (CurrentUser.IsInRole(@BasicUsers@))
{@1;Properties@ }
else {if (CurrentUser.IsInRole(@SalesTeam@))
{@4;Digital Assets@}
else{if (CurrentUser.IsInRole(@MarketingTeam@))
{@2;Description @ Marketing Info@}
}
}#
This code is working fine, But when if i want to add one more radio button for some role using code below
if (CurrentUser.IsInRole(@BasicUsers@))
{@1;Properties@ }
else {if (CurrentUser.IsInRole(@SalesTeam@))
{@4;Digital Assets@
@1;Properties@
}
else{if (CurrentUser.IsInRole(@MarketingTeam@))
{@2;Description @ Marketing Info@}
}
}#
This code is not showing any Radio buttons.
is there any specific syntax for creating listItem in macro?
↧