Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Hidden Form Fields

New Here ,
Aug 17, 2018 Aug 17, 2018

I'm trying to find out if there is a way to have hidden form fields that can only be seen if a password is used. I have a PDF form set up as a survey made up of a few questions which each have 5 radio buttons for answers. Each button has a value of 1-5. I also have a hidden field that calculates the values. I need for the person taking the survey to not be able see this hidden field, however it needs to be visible with a password entered. I would also be open to possible work-arounds.

TOPICS
PDF forms
574
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 16, 2020 Aug 16, 2020

Hi,

 

This simplest method would be to hide the fields and show them if a password is entered in a text field, this would be easy to do as long as the password can be included in the script ( which does mean it could be read by someone with the know how).

 

Regards

 

Malcolm

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 16, 2020 Aug 16, 2020
LATEST

Hi, you could also make checkbox and put it somewhere on the page (like corner of a page) where only you will now it's
there and you are sure users won't click there, remove it's border and fill colors,and choose text color of your page background ( probably white ) so it will be invisible but still clickable

and add this javascript as checkbox mouseup event:

 

if (event.target.value != "Off"){
this.getField("textfield").display = display.visible;
}else this.getField("textfield").display = display.hidden;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines