Default Value According to User

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
shahparzsoft
User
Posts: 361

Default Value According to User

Post by shahparzsoft »

I want to fill a default value of a field according to a logged in user (in Add Form).

e.g.

i have logged in as user_id (value=3) and my country is Indonesia in my profile table, then
when i Log In and click on Add for any form then my target_country field should be filed automatically
'Indonesia' by my user_id.


scs
User
Posts: 694

Post by scs »

in Row_Rendered,
if (user_id_field_name = 3) {
$this->country_or_whatever->CurrentValue = "your value";
}


mobhar
User
Posts: 11758

Post by mobhar »


Post Reply