The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Display Fields in a Table
Is there a way to quickly/easily display fields in a table?
I've created a table using HTML but I'd like to populate the cells with values from fields that I've created. I thought it would be as simple as adding the field ID within the table data cell like when creating a view. Ex: <td>[123]</td> but this only displays the "[123]" as text within the cell of the table.
See attached photo.
November 13, 2018 at 1:35 pm
Hello,
What you are doing is correct. Not sure what is wrong. Could you attach a screenshot of your View? Looks like you've forgotten to attach.
November 13, 2018 at 2:21 pm
So this is the code from my content box in an HTML field.
I even triedĀ <frm-field-value field_id=592> which I got from the knowledge base docs but this did not seem to work either.
<table id="load-settings">
<thead>
<tr>
<th></th>
<th>Amps</th>
<th>Duration</th>
</tr>
</thead>
<tbody>
<tr>
<td>Start 0:00</td>
<td><frm-field-value field_id=592></td>
<td>30 Secs</td>
</tr>
<tr>
<td>At 0:30</td>
<td>[618]</td>
<td>30 Secs</td>
</tr>
<tr>
<td>At 1:00</td>
<td>[615]</td>
<td>30 Secs</td>
</tr>
<tr>
<td>At 1:30</td>
<td>[616]</td>
<td>30 Secs</td>
</tr>
<tr>
<td>At 2:00</td>
<td>[605]</td>
<td>[606]</td>
</tr>
</tbody>
</table>
Attached is a photo of the table
Attachment:

November 13, 2018 at 2:22 pm
Just to reiterate, this is within the form itself. I am not trying to create a view.
November 13, 2018 at 4:26 pm
Ok. I understand the issue now.
Normally we display form details in a View. When the user submits the form, you can configure it to redirect to/show a page which has the View in it.
If you would like to display field values before the form is submitted (Common use-caseĀ is a confirmation page), you can use the HTML field just like you did above but the HTML field can't be on the same page. Convert your form into a multi-page form and put the HTML field in the last page. Please note that not all shortcodes work here. Simple field shortcode [xxx] will work.
https://formidableforms.com/knowledgebase/page-breaks/#kb-create-a-multi-page-form
If you like to display on the same page, it requires custom coding with JavaScript/jQuery.
Discussion closed.