Hello, sorry for the English, for it may uncle google.
My problem is that I have a form which needs one field "CHECK" switch to disabled unless the correct logged in user. Thank you David
My problem is that I have a form which needs one field "CHECK" switch to disabled unless the correct logged in user. Thank you David
Hi David,
Please try this code in the "Extra params" box:
Regards,
Max
Please try this code in the "Extra params" box:
<?php
$user = JFactory::getUser();
if(!$user->get("id")){
echo 'disabled="disabled"';
}
Regards,
Max
This topic is locked and no more replies can be posted.