• Resolved rhubeny76

    (@rhubeny76)


    I use the submission behavior message to display the form’s completed fields after submission. This allows the user to print out their transaction if they don’t provide an email. Works great except for repeating groups because only the 1st entry in the group is displayed.
    Is there a way to display all entries in the group array within the message? I use the insert form fields to add them to the message.

    Alternately, is there a way to show the form they just submitted without resetting the fields so they can see and print out what they just donated?

    thank you

    • This topic was modified 8 months ago by rhubeny76.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @rhubeny76

    I hope you are doing well today.

    Please export your form into Google Drive and share a link in your next reply so that we can test that form on our side.

    Kind Regards,
    Kris

    Thread Starter rhubeny76

    (@rhubeny76)

    https://docs.google.com/document/d/1J76LWLHdHzHlM4MM6JdJLg-LHOExcH1mRZiM8Z-L-as/edit?usp=sharing

    What I am hoping to do is display all the repeating group fields in the inline behavior response message to allow the user to print our their donation in full. Similar to your {all_fields} in the administrator’s email notifications.

    You can see our draft webpage here: In-Kind Donations – St. Peter’s Episcopal Church (stpeters-sw.org)

    Thank you.

    Hi @rhubeny76,

    Hope this message finds you well.

    Currently, there is no tag to display a Group Field, however, since your field group has a limit you can use the repeater tag like this:

    <table>
        <th>Donation Date</th><th>Amount</th><th>Category</th><th>Description</th></tr>
        <tr><td>{date-1}</td><td>{currency-2}</td><td>{select-1}</td><td>{text-2}</td></tr>
        <tr><td>{date-1-2}</td><td>{currency-2-2}</td><td>{select-1-2}</td><td>{text-2-2}</td></tr>
        <tr><td>{date-1-3}</td><td>{currency-2-3}</td><td>{select-1-3}</td><td>{text-2-3}</td></tr>
        <tr><td>{date-1-4}</td><td>{currency-2-4}</td><td>{select-1-4}</td><td>{text-2-4}</td></tr>
        <tr><td>{date-1-5}</td><td>{currency-2-5}</td><td>{select-1-5}</td><td>{text-2-5}</td></tr>
    </table>

    {field-1} will be the first entry {field-1-2} will be the second and so on, I apply the table above, and the result looks like this:

    https://prnt.sc/56JZgwMDK1j_

    You can customize it to your needs.

    Let us know if you require additional information.

    Best regards,
    Laura

    Thread Starter rhubeny76

    (@rhubeny76)

    Laura, How did you get the HTML formatting to get interpreted in the behavior inline response message?

    I added your code to Behavior Inline Message and the HTML tags get displayed as text instead of being interpreted. Thank you.

    https://1drv.ms/i/s!AnJaNdDNTIkpwzYvpkm3sqOwHoqo?e=AdIUiu

    • This reply was modified 7 months, 4 weeks ago by rhubeny76.
    Thread Starter rhubeny76

    (@rhubeny76)

    Laura, I have improved the formatting by copy/paste as text into inline message but your presentation still looks better. Take a look at mine (which is acceptable) but your message with the bold headings look much better. How did you get your message to format this way?

    https://1drv.ms/i/s!AnJaNdDNTIkpwze3gGAJYCJCBNh4?e=vjrmUU

    Hi @rhubeny76,

    Sorry if I was not clear, but the code I used needs to be added as Text to be interpreted as HTML:

    https://prnt.sc/plx1ogiqzyq-

    For table headings bold, you might need to use <th> instead of <td>

    <tr><th>Donation Date</th><th>Amount</th><th>Category</th><th>Description</th></tr>

    Your formatting looks pretty good! Good job.

    Let us know if you require additional information.

    Best regards,
    Laura

    Thread Starter rhubeny76

    (@rhubeny76)

    Thank you. Great support. Resolved.

    I tried using the same code (for the form and for the table displaying the values) but was not able to display any values other than the first one from a repeater?
    Was Forminator code changed in the last month so it doesn’t work anymore or am I missing something (settings or such) that would make this work?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Display repeating group fields in submission behavior message’ is closed to new replies.