This topic is locked

Custom Field options, depend of something

6/15/2010 6:17:44 AM
PHPRunner General questions
S
Seraph author

Hi,

Anyone know how to do for show a option only if a condition is verificated?

I explain better:
I have a field on my DB where in "Add-Page" take his possible values from another field in another table through 'Lookup table' option and is possible insert new values on the fly.
I want that the "Allow to add new values on the fly" option is showed only for a specific condition, for example for a specific User.
Thank you very much!

A
ann 6/15/2010

Hi,
You can change these settings in the generated files only. Check BuildSelectControl function in the output/include/commonfucntions.php file.

Actual username is in the $_SESSION["UserID"] variable.