• Resolved PB

    (@ohtusabes)


    Hi @codepeople2

    I’d like the summary field to display both the field name and its corresponding value. Is this possible?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author CodePeople2

    (@codepeople2)

    Hello @ohtusabes

    I’m not sure about your question. The Summary control displays both, the field label or title, and the information the field would send to the server when the form is submitted.

    For instance, if you are using a Single Line Text control, a Number field, a Calculated Field, or any other control that features an input box, the value will directly reflect the information entered by the user or the calculated result. Conversely, in controls that offer multiple choices—such as radio buttons, checkboxes, and dropdown fields—you have the ability to determine the information that will be submitted. This is done through the settings of the fields, allowing you to specify whether the submitted data will consist of the choices’ labels or values. This selected information will then be displayed in the summary control.

    Best regards.

    Thread Starter PB

    (@ohtusabes)

    Hi @codepeople2

    I′m sorry if I′m not explaining myself clearly. I understand your explanation about the Summary that displays the fieldname label and the information to submit (whether it is text or a value). What I’m aiming for is to have the label and both user selection (text and value) appear in the summary. Is it possible?

    • This reply was modified 3 months ago by PB.
    Plugin Author CodePeople2

    (@codepeople2)

    Hello @ohtusabes

    I apologize for the delay in responding to your question. I’ve been busy working on a plugin update to simplify the process for you.

    Please install the latest plugin update and follow the steps below:

    1. Insert an “HTML Content” field in the form
    2. Tick the ”?Accept advanced code in content as JavaScript code” checkbox in its settings.
    3. Finally, enter the following code as its content:

    <script>
    fbuilderjQuery(document).on('formReady', function(){
    fbuilderjQuery('[vt]').each(function () {
    let e = fbuilderjQuery(this);
    e.attr('vt', CONCATENATE(e.attr('vt'), ' (', e.val(),')'));
    });
    });
    </script>

    4. Finally, tick the “Choices Texts” option for the “Value to Submit” attribute in the checkbox, radio button, or dropdown field.

    Best regards.

    Thread Starter PB

    (@ohtusabes)

    Hi @codepeople2

    Amazing. Thank you so much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.