• Resolved mpbaweb

    (@mpbaweb)


    Hi
    Is it possible to display the Paid/Not Paid flag in CP_CALCULATED_FIELDS_RESULT_LIST?

    • This topic was modified 6 years ago by mpbaweb.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @mpbaweb

    Yes of course, that’s possible.

    By default, the shortcode for the results list has the structure: [CP_CALCULATED_FIELDS_RESULT_LIST formid="1"] (assuming that 1 is the id of the form whose submissions you want to list), however, you can decide the fields to include in the summaries, like in the following piece of code:

    
    [CP_CALCULATED_FIELDS_RESULT_LIST formid="1"]
    <p><%fieldname1_label%>:<%fieldname1_value%></p>
    <p>New Label: <%fieldname2_value%></p>
    <p><%fieldname3%></p>
    [/CP_CALCULATED_FIELDS_RESULT_LIST]
    

    as you can see it is possible to use all special tags supported by the results shortcode and the notification emails (the complete list is available in the following link: https://cff.dwbooster.com/documentation#special-tags)

    One of these tags is: <%payment_status%> that is replaced by the texts: “Paid” or “Not Paid” as corresponds. For example, assuming you want to include a summary with all fields and the payment status:

    
    [CP_CALCULATED_FIELDS_RESULT_LIST formid="1"]
    <div><%INFO%></div>
    <p>Payment status: <%payment_status%></p>
    [/CP_CALCULATED_FIELDS_RESULT_LIST]
    

    Best regards.

    Thread Starter mpbaweb

    (@mpbaweb)

    I love the support you provide. There cannot be any better for ANY plugin.
    Thank you again.

    Plugin Author codepeople

    (@codepeople)

    Hello @mpbaweb

    It has been a pleasure.

    Best regards.

    Thread Starter mpbaweb

    (@mpbaweb)

    One last question on this – Is it possible to show the <%fieldnamexx_text%> value rather than the <%fieldnamexx_value%>

    Plugin Author codepeople

    (@codepeople)

    Hello @mpbaweb

    You are referring to the <%fieldname#_label%> tags (the tags with the structure <%fieldname#_text%> are not supported by the plugin)

    In fields like radio buttons, checkboxes and DropDown where every choice has associated a text and a value, you decide from the fields’ settings (through the attribute: “Value to Submit”) if submit the values or texts of choices selected, but in the “thank you” page, no matter the option selected, you should use the tag <%fieldname#_value%>

    Best regards.

    Thread Starter mpbaweb

    (@mpbaweb)

    Ues I thought so. My dropdown was just 1-10 with associated prices and was a simple linear progression of 15 pounds per item. So I just created a new calculted hidden field and divided the value by 15 to get back to the text.
    All solved
    Thanks again

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Form Results’ is closed to new replies.