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

Question

Question

Assign html variable in template field in form

asked on May 31, 2016

Hello,

We have created one form which contain custom html activity, in that we have added 2 text box like First name and Last name.

Now we need to assign those First name and Last name value into metadata field via configure fields into the save repository option of form.

We tried to get value of Last name and First name but we could not found any custom html variable to Configure Fields option.

Please find attached form design for your reference.

Kindly help is there any other way to extract custom html field value using html activity through form.

Thanks,

Custom HTML Form.jpg
0 0

Replies

replied on May 31, 2016

Hi there,

In Forms, "Custom HTML" is designed to add static text and images, which means it can not pass data to Forms backend even it has "input" which looks like it could.

If you really want it to be done in Custom HTML field, you need to create real fields for any inputs you want to pass/save into backend (you can make those fields "hidden" in frontend so they won't display to end-users on that form but you do need them to take data), then use customized css/javascript to map them, so variables associated with those fields can be used as metadata.

However, we recommend using Forms fields instead so you don't have to go through all the javascript things and it's easier to maintain during future upgrades.

To do that, you can create two Sinle-Line fields for First name and Last name and make labels alignment "top" (or get rid of the lables and use "text above field" instead )

Preview:

1 0
replied on April 30, 2018

I have mapped fields to the custom HTML area (see below).  The values display in the form until it is submitted.  They are not reflected in the submitted in-browser completed form or in the PDF in Laserfiche.  

Are there additional steps beyond mapping the fields to the custom html?

 

<font size="3"><b><font face="Times New Roman">I,&nbsp;&nbsp;<i><span id="htmlfirst"></span> <span id="htmlmiddle"></span> <span id="htmllast"></span> (name of person opening account)</i>, hereby certify, to the best of my knowledge, that the information provided above is complete and correct.&nbsp;<br></font></b></font>  

 

Thanks for any insight you can provide. 

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

Sign in to reply to this post.