Hi,
I'd like to set up a password prompt to make a form that is hidden into visible. What I have is a form with 2 pages. Page 1 has all the fields that the user has to fill out, and page 2 is for admin use only. I have placed a radio button at the end of page 1 with the text "Admin use only". which when clicked, it makes the 2nd page visible. However, I wanted to add a layer of security so that if the user clicks the radio button, it would prompt them to enter a password in order for the Admin only page (page 2) to become visible.
Is that possible???
Thank you for your help!!!!!!!!!!
J
Solved! Go to Solution.
Views
Replies
Total Likes
I am not overly experienced but I will try. I use formcalc for my
forms, this should work with slight adjustments:
On the button click event place the code
if (xfa.host.response("Password:", "Admin Password") == "password") then
form1.page2.presence = "visible"
endif
You cannot hide the page after it has been shown but this should work.
Let me know if these instructions are not clear enough.
Views
Replies
Total Likes
I have not actually tested this myself so I do not know how much help I will be but no one else has responded so I will take a stab at it.
I think this would be possible using an if statement and xfa.host.response method. Have an if statement that if the response is correct then the additional page is displayed.
I do not know how secure this would be (for example I can't think of a way to set a limit on the number of wrong attempts), and you would have to set the password in the code and the user would not be able to change it, but hopefully this will be of some help.
Views
Replies
Total Likes
Hi,
Thank you for your reply. I'm not a pro on this so I would need a bit more help I need to be able to prompt for a password and only the correct response would display the hidden form.... Is there anyway you could provide me with the code?
Thank you!!!!
Views
Replies
Total Likes
I am not overly experienced but I will try. I use formcalc for my
forms, this should work with slight adjustments:
On the button click event place the code
if (xfa.host.response("Password:", "Admin Password") == "password") then
form1.page2.presence = "visible"
endif
You cannot hide the page after it has been shown but this should work.
Let me know if these instructions are not clear enough.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies