laneoc
Posts: 154
|
Posted: 01/15/2018, 11:23 AM |
|
When a user clicks Submit on my page, the user is redirected to the login page if not logged in (probably do to a web server timeout). After logging in, the user is directed back to the page they started. But the values they entered onto that page are missing.
What can I do to keep those values so that after the user comes back to the entry page after logging in, they don't have to re-enter everything?
_________________
Lane |
|
|
ccsminer
Posts: 159
|
Posted: 01/16/2018, 10:23 PM |
|
Not recommended - but adding the page parameters to the page query URL might work.
|
|
|
MichaelMcDonald
Posts: 640
|
Posted: 01/17/2018, 4:22 PM |
|
Session Variables?
In the form OnValidate event:
$textfieldvalue = $formname->textfield->GetValue();
CCSetSession("textfieldvalue", $textfieldvalue);
In the form BeforeShow event
$formname->textfield->SetValue(CCGetSession("textfieldvalue"));
After Insert, Update, On Submit or whatever clear it
CCSetSession("textfieldvalue", "");
_________________
Central Coast, NSW, Australia.
|
|
|
DataDoIT
|
Posted: 01/18/2018, 11:34 AM |
|
You should probably not have the user even see the page without proper
credentials. Sounds like your record form has the Restrictions as
opposed to the Page.
|
|
|
|