Hi, I have a question about displaying a content of a file according to user group, namely a registration form.
Attach the original file without code changes.
The attached file around line 139 we code with $ field = $ this-> fields-> getField ().
I want to change the users are in group X to appear piece of code $ field = $ this-> fields-> getField ();
And users are in group Y piece of code appear $ field = $ this-> fields-> getField () if ($ field-> hasValue ()) only if it has value.
I do not know how I can do this.
I tried something like
<php? if ($ userGroupName myGroupName && $ == $ myGroupName == 'agents)
{?>
Piece of code 136-157
<? php} else {if ($ userGroupName myGroupName && $ == $ myGroupName == 'Clients')?>
Piece of code from 136 to 157 139 line of code changed $ field = $ this-> fields-> getField () if ($ field-> hasValue ())
<? php}?>
But no result.
If I can anyone help them remain in debt.
Thanks, Mircea
18394_.txt
18395_.txt