Page 1 of 1

Custom Default Automatic Value

Posted: 2019-03-15 18:30
by Chris
Hello All!

What would be the proper way to add more default automatic values? For example, (%%creatorFullname%%> pulling data from the custom1 column in the membership_users table.

Thank you.

Re: Custom Default Automatic Value

Posted: 2019-03-27 14:35
by bescott53
if you take a look at the /incCommon.php file and go to the function parseCode. you should be able to add it from there?

'<%%creatorFullname%%>' => sqlValue("select membership_users.custom1 where memberID=' {$_SESSION['custom1']}'")

IMPORTANT - this is a file that is overwritten so maybe someone can provide a better way?

Re: Custom Default Automatic Value

Posted: 2019-03-27 23:41
by Chris
Thank you. I will take a look there. Maybe there is a way to do this with a hook.