Hello Admin,
Issue: Fast data entry using default values in the Add New page.
This is the existing Help guide technique about setting default values to facilitate data entry:
- Create session variable upon successful login:
$_SESSION["campuslocation"] = "General Santos City";
- Before record added event
$values["campuslocation"] = $_SESSION["campuslocation"];
- the user hits the SAVE button
This approach is good but not informative enough since the user did not see on screen the field campuslocation being assigned the value General Santos City.
What I want:
- Create session variable upon successful login:
$_SESSION["campuslocation"] = "General Santos City";
- Make the field campuslocation as readonly on the ADD Page with the preassigned Value General Santos City so that the user can see but cannot change the value.
- Before record added event
$values["campuslocation"] = $_SESSION["campuslocation"];
- the user hits the SAVE button
I think the idea of letting the user see all fields with corresponding value before hitting the SAVE button adds completeness to the process of entering data in a network environment. Any idea on how to do this? I tried to figure it out but I was not successful.
Best regards,
Frodnicklye