Skip to main content
Nintex Community Menu Bar
Solved

Why won't the Generate Document function read a hidden field?

  • January 22, 2021
  • 6 replies
  • 76 views
  • Translate

DavidAD
Forum|alt.badge.img+8

So I've got an NWC form that writes data to a PDF document using the Generate Document function. I have it close to working, but there's one problem. I have a hidden text field in my form whose value is determined by a visible Single Choice field. I'm using the value of the hidden field to write to the PDF document and to an email that is generated at the end of the workflow.

 

But it seems the Word document from which the PDF is generated isn't placing a value where I want it, even though there is a document tag in those locations. The areas are left blank. However, if I make the hidden field visible, everything works fine.

 

Does the Document Tagger not work with data in hidden fields? If not, why?

Best answer by leighburke

@DavidAD Hidden fields don't return a value, if you log it to instance details you will get the same result. If you are looking to use a value that isn't shown on the form then I would suggest using a form variable instead.

View original
Did this topic help you find an answer to your question?

6 replies

Forum|alt.badge.img+14
  • Nintex Employee
  • 515 replies
  • Answer
  • January 28, 2021

@DavidAD Hidden fields don't return a value, if you log it to instance details you will get the same result. If you are looking to use a value that isn't shown on the form then I would suggest using a form variable instead.

Translate

DavidAD
Forum|alt.badge.img+8
  • Author
  • Apprentice
  • 71 replies
  • January 28, 2021

@leighburke Thank you. I'll work with that.

I guess I need to go back and look at the help documentation to review hidden fields, but if they don't return a value, I fail to see their purpose. Or is it the case that what's in a hidden field can only be used within the form, but not in the workflow?

Translate

Forum|alt.badge.img+14
  • Nintex Employee
  • 515 replies
  • January 28, 2021

@DavidAD So when the form is submitted any fields that are hidden do not pass a value to the Workflow, so yes you could still use it in the Form.

Translate

DavidAD
Forum|alt.badge.img+8
  • Author
  • Apprentice
  • 71 replies
  • January 28, 2021

@leighburke Thank you. Now I understand it.

Translate

Forum|alt.badge.img+6
  • 45 replies
  • December 15, 2021

Changing the input, fill, and border all to white* but keeping it visible hides it but passes it to the workflow. And if you do it this way, it can be used as a space if you need one. If you use this in a repeating section, set it not to alternate row colors or it will show up.

 

* Or whatever color your form background is set to. 

Translate

Sc12
Forum|alt.badge.img+3
  • Novice
  • 10 replies
  • October 27, 2022

Hi David,

Do you have an example of this?

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings