You are viewing limited content. For full access, please sign in.

Question

Question

Creating a footer with a variable

asked on March 30, 2022

I am trying to put the name of the person submitting the form (from two single line FirstName LastName fields) on the bottom of subsequent pages by creating another set of single line fields and setting the default values of those fields to the FirstName LastName variables, which seems like it should work, but that information does not make it over to the submitted form. I'm not sure what I am doing wrong, or if there is another way with JavaScript to create a footer from a variable. Thanks for your help! 

0 0

Answer

SELECTED ANSWER
replied on March 31, 2022

Can you show me the calculation that you are using?  The example I pasted above is assigning the destination field the value of the identity field concatenated with the value of the Requestor field.  A simple, unformatted joining of two strings.

If you want your destination field to be assigned the concatenation of the first name and last name it would probably be something like

=FirstName & " " & LastName

0 0

Replies

replied on March 30, 2022

Rather than using the default value functionality, I suggest you use a calculation to populate the field.

 

2 0
replied on March 30, 2022

To expand on this a little, Jenni, the values don't get set until the document has been submitted, so aren't available to your footer fields (and there are some other side-effects related to that). The calculation runs in real-time so will show values as soon as they exist.

1 0
replied on March 30, 2022

Thank you! I will play with this and see if I can make it work!

0 0
replied on March 31, 2022

James,  I apologize, but I need to ask for more clarification. If the field I am trying to set the new field to has a variable of AFName, can you help me with what my calculation should be? I'm getting a calculation error any which I try it.  I would say I am novice at calculations, but I did go through each of the examples in help and couldn't find an example. Thanks for your help! 

0 0
SELECTED ANSWER
replied on March 31, 2022

Can you show me the calculation that you are using?  The example I pasted above is assigning the destination field the value of the identity field concatenated with the value of the Requestor field.  A simple, unformatted joining of two strings.

If you want your destination field to be assigned the concatenation of the first name and last name it would probably be something like

=FirstName & " " & LastName

0 0
replied on March 31, 2022

Yes! I was making that so much harder than it needed to be. I got it working! Thank you so much! 

0 0
replied on March 31, 2022

:)

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.