show a field or fields when a link is clicked
AnsweredHello,
Hoping the community can assist in this request.
I have a form with a hyperlink in it that opens a document for a user to read.
I also have three fields on the form that I do not want to show t the user until they have clicked on the hyperlink as seen in the image below:
I want to hide the "I Confirm Reading the Document", "Date Read" and Confirm Name fields and only show them after the user has clicked the link in the Document Link(s) field.
I believe that this can be done in the Behavior tab in the Form Load Actions using the Execute Script action. Was wondering if someone could help out a non coder person with the code to do this.
Thank you
-
Sorry for adding this later.
I have been given another requirement for this form. In the screen shot above I have the link called NDA Document that is a hyperlink to the document that the user needs to review. They want to have he document open in a modal window so that the user can see the fields that need to be confirmed behind the modal window. This way the user is not trying to go back and forth between windows.
0 -
Hi Sean,
this scenario can be quickly achieved using a link with action and a helper checkbox which is not visible.
Do the following steps:
- Add a checkbox as helper (e.g. DocRead) and set it's visible expression to =false
- Set the visible expression on the fields you want to show after the document has been read to =[[DocRead]]
- add a link with actions
- Configure the following two actions to show the document and set the checkbox DocRead to 1 (checked)
The result will look like this:
Hope this helps.
Kind regards
Matthias
0 -
Hello Matthias,
Thank you for the quick reply to this question.
I have tested out your solution and it worked AMAZING!!!!
Your solution does exactly what I wanted it to do!
Thank you for your very prompt and excellent assistance!
Sean
0 -
You're welcome! Thanks for the feedback.
Matthias
0
Please sign in to leave a comment.
Comments
4 comments