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

Question

Question

is there a way to display the input data from 1 page of a From to a second page

asked on January 22

I am in the process of building a new form for business card ordering.  they want to have the end user enter in their information on page 1 and then on page 2 display it as if it was a business card.  I have tried doing an HTML and a Rich Text field to display the dataset fields from the first page but I get nothing.  Is there a way to display that so they can see what their potential business card will look like before hitting submit?

 

I am attaching both Page 1 and page 2 of my form.

Page 1.png
Page 2.png
Page 1.png (18.46 KB)
Page 2.png (13.39 KB)
0 0

Replies

replied on January 22
2 0
replied on January 23

Not sure how to vote, but i did like it.  Would be nice to have the feature that worked in classic also work in the "new" form designer. 

0 0
replied on January 23

Just give it a thumbs up wink

0 0
replied on January 23

Done.  Thank you!!

0 0
replied on January 22 Show version history

Heya Kristin,

 

I believe this post can answer this for you. Instead of using the variable name, you'd change it to a <span></span> or similar HTML element that will have the nominated ID for the field that represents the field its pulling the value from, then use JavaScript to enter it into that HTML element. This would only need to be done on the form before it's submitted or at the current task, as the variable doesn't actually hold any information until the form is submitted. If this goes to a second task then you can use exactly as is in your screenshot.

0 0
replied on January 23

Thank you.  Its a bummer I have to use the classic form designer for this.  But that worked there. 

0 0
replied on January 23

Ok - So it worked....Sort of, when I actually submitted the form the PDF is all blank.  it shows when i am filling out the form, but once submit is hit everything is blank.  I know that for some fields, you need to have them as read only and they show, but I don't see how that is possible with HTML?  

0 0
replied on January 23

Is this for when it saves to the repository or sends as an email attachment? If it's saving the form that has the JavaScript on it, then it likely won't work as intended as the timing will be missed for it to load. I'm not too familiar with it all, but I have developed plenty of forms that have a similar concept.

When I have a form that uses JS to manipulate a HTML field that also needs to save in the repository or sent as PDF in an email, I like to duplicate the form so that it has a 'saving copy'. On the saving copy I remove the ID's from the <span></span> HTML elements and replace them with the corresponding variable. 

As an example, <span id="field1"></span> becomes <span>{/dataset/field1}</span>. This allows the variable's data to load into the element when it becomes a PDF. If you have a different scenario then feel free to post screenshots or more in-depth descriptions and we'll try to help

0 0
replied on January 24

Thank you, that makes sense.  It is saving as a PDF and being emailed out.  However, it is kind of just a print preview of what their business card will look like, and am not entirely sure if that even needs to be sent.  I will follow up with the user requesting and if they do I will try your copy and replacing the Spans.

 

Thanks for all your help.  

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

Sign in to reply to this post.