NewUser dialog to auto-populate fields to redirected additional registration page
Ok, I’ve seen many posts that are close to what I hope to accomplish but can’t quite get there. I really hope someone can direct me with a step-by-step process for any other “newbie” to see.
I have a NewUser dialog. I followed all of the directions in the help with some minor variations.
In the NewUser dialog:
1) I want to create a session.variable with the username (userid)
2) I want to create a session.variable with groups (groups)
3) Any others I should also include?
Then I wish to auto-populate the userid into my registration form that also has a field called userid set to character. When the user registers, user is redirected to the registration page.
Controls
Userid textbox, scope set to local
Password textbox, scope set to local
Confirm_password textbox, scope set to local
SecQues dropdownbox, scope set to local
SecAns textbox, scope set to local
Groups radiobutton, scope set to local
Ulink hidden, scope set to session
Guid hidden, scope set to session
Initialize
a5ws_get_user_values(CurrentForm,request)
Validate
a5ws_save_user_values(CurrentForm,request)
Aftervalidate
a5ws_get_user_values(CurrentForm,request)
If currentform.controls.groups = "5f8c48b1911041fc8bee4cb8fee6310d"
'This is the employer field 5f8c48b1911041fc8bee4cb8fee6310d
response.redirect("Employer_Register.a5w")
request.variables.ulink=userid
else if currentform.Controls.groups ="88c05dceff4949a18625cfdcfca0b135"
' This is the job seeker field 88c05dceff4949a18625cfdcfca0b135
response.redirect("Jobs_List.a5w")
request.variables.ulink=userid
end if
Activate
queslist = a5ws_get_security_ques(request)
pagelist = a5ws_get_page_list(request)
'create grouplist filter
grouplist = a5ws_get_groups(request,.t.)
'remove 'Administrator' from groups list
grouplist = filter_string(grouplist,"Administrators",crlf(),.T.)
'grouplist = filter_string_multi(grouplist,"Job Seekers",crlf(),.T.)
For Security Framework, I have "Session variable for verifier field" = __protected__Userid
Can you tell me what I am missing and where to put the missing code? Once, the session variables are correct, I think I can figure out how to auto-populate the registration forms by again studying the other posts related to that issue.
I hope to accomplish something similar to what Pat did here http://msgboard.alphasoftware.com/al...light=new+user
only with the registration page AFTER the NewUser dialog.
Thank you to anyone who can give me suggestions and direction.
Ok, I’ve seen many posts that are close to what I hope to accomplish but can’t quite get there. I really hope someone can direct me with a step-by-step process for any other “newbie” to see.
I have a NewUser dialog. I followed all of the directions in the help with some minor variations.
In the NewUser dialog:
1) I want to create a session.variable with the username (userid)
2) I want to create a session.variable with groups (groups)
3) Any others I should also include?
Then I wish to auto-populate the userid into my registration form that also has a field called userid set to character. When the user registers, user is redirected to the registration page.
Controls
Userid textbox, scope set to local
Password textbox, scope set to local
Confirm_password textbox, scope set to local
SecQues dropdownbox, scope set to local
SecAns textbox, scope set to local
Groups radiobutton, scope set to local
Ulink hidden, scope set to session
Guid hidden, scope set to session
Initialize
a5ws_get_user_values(CurrentForm,request)
Validate
a5ws_save_user_values(CurrentForm,request)
Aftervalidate
a5ws_get_user_values(CurrentForm,request)
If currentform.controls.groups = "5f8c48b1911041fc8bee4cb8fee6310d"
'This is the employer field 5f8c48b1911041fc8bee4cb8fee6310d
response.redirect("Employer_Register.a5w")
request.variables.ulink=userid
else if currentform.Controls.groups ="88c05dceff4949a18625cfdcfca0b135"
' This is the job seeker field 88c05dceff4949a18625cfdcfca0b135
response.redirect("Jobs_List.a5w")
request.variables.ulink=userid
end if
Activate
queslist = a5ws_get_security_ques(request)
pagelist = a5ws_get_page_list(request)
'create grouplist filter
grouplist = a5ws_get_groups(request,.t.)
'remove 'Administrator' from groups list
grouplist = filter_string(grouplist,"Administrators",crlf(),.T.)
'grouplist = filter_string_multi(grouplist,"Job Seekers",crlf(),.T.)
For Security Framework, I have "Session variable for verifier field" = __protected__Userid
Can you tell me what I am missing and where to put the missing code? Once, the session variables are correct, I think I can figure out how to auto-populate the registration forms by again studying the other posts related to that issue.
I hope to accomplish something similar to what Pat did here http://msgboard.alphasoftware.com/al...light=new+user
only with the registration page AFTER the NewUser dialog.
Thank you to anyone who can give me suggestions and direction.
Comment