This topic is locked
[SOLVED]

 HOW TO HIDE/READ ONLY field(CheckBox) depend on GroupId

8/27/2010 4:50:06 AM
PHPRunner General questions
M
mumtaz author

Hii guys,

I've some problem with my project.

How to hide/ReadOnly check box depent on $_SESSION["GroupID"]
if GroupID not -1 or 3 or 4 check box = ReadOnly/hide

else check box = show
thx before

A
ann 8/27/2010

Hi,
to hide field use Add/Edit page: Before display event on the Events tab and put the following code there:

$xt->assign("FieldName_fieldblock",(($_SESSION["GroupID"]=="-1")||($_SESSION["GroupID"]=="3")));



where FieldName is your actual field name.

M
mumtaz author 8/27/2010

thx for your respon
but, I've use this trick but its still block for all user.



Hi,
to hide field use Add/Edit page: Before display event on the Events tab and put the following code there:

$xt->assign("FieldName_fieldblock",(($_SESSION["GroupID"]=="-1")||($_SESSION["GroupID"]=="3")));



where FieldName is your actual field name.