• Resolved datsyuk

    (@datsyuk)


    Hello together,

    we created a registration form that allows to add several users using a repeated field group. Everything works fine, but we want to add the data of all registered users in the confirmation mail. unfortunatly this works ony for the first user, it seems i cannot add the repeated fields to the confimation e-mail. I tried to use this kind of shortcode {name-3-*} but it did not work.
    Is there a solution for that case?

    Thanks and best regards
    J?rg

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @datsyuk,

    Are you trying to add the fields individually in the Email? ie for example name-1, name-2 etc

    If yes, then I’m afraid this isn’t fully supported for Field Groups(repeater) fields yet only?{all_fields}?and?{all_non_empty_fields} are supported at the moment.

    I’m afraid, there isn’t any easy workaround at the moment other than using the {all_fields} tag.

    We are already working on improving the workflow to support adding repeater fields but at the moment there isn’t any exact ETA we could provide.

    Kind Regards,

    Nithin

    Thread Starter datsyuk

    (@datsyuk)

    Hello Nithin,

    thanks for your fast reply. Yes I tried to add the fields manually because the Shortcodes {all_fields}?and?{all_non_empty_fields} also show the hidden fields of the form in the e-mail. Since we have some calculations and logics running in the background (using hidden fields) that looks very strange to the mail recipient.
    Can I avoid to show hidden fields in the confirmation mail?

    thanks and best regards
    J?rg

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @datsyuk

    Can you export your form, upload it to google drive or dropbox, and share a link in your next reply so that we could take a closer look at those calculations?

    Kind Regards,
    Kris

    Thread Starter datsyuk

    (@datsyuk)

    Hello Kris,

    thanks for your offer. Maybe there would also be a way for that calculations without hidden fields. But the question is still why hidden fields are shown in the confirmation mail for the submitter?
    I mean hidden should be hidden (whatever the cause is to hide them).
    Hoping for a {all_visible_fields} Shortcode.

    thanks & best regards
    J?rg

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @datsyuk

    Before my final test, could you let us know do you mean hidden field as one of the fields we offer, or do you mean one of the fields is hidden based on conditional logic and it is visible in the email?

    You exported form and fields names will help us more.

    Kind Regards,
    Kris

    Thread Starter datsyuk

    (@datsyuk)

    Hello Kris,

    the fields are set to Hidden under Edit Field –> Settings:
    For example to count the amount of Participants which are added by a repeated field. Still the Fields ere visible in the confirmation Mail when using the {all_fields} Tag.
    You can download the exported form here:
    https://notebookpartner-my.sharepoint.com/:t:/g/personal/schnaitmann_notebookpartner_onmicrosoft_com/EfnchXYFfvNBlX4U48wQ-y4B3r4b2fIlUWltYbf0Lg1E2g?e=JHgeWf

    Thanks and Best Regards
    J?rg

    • This reply was modified 1 year, 6 months ago by datsyuk.
    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    HI @datsyuk,

    Seems like you are referring to the Calculation fields which are marked as hidden. I’m afraid, it’s more of an expected workflow with all_fields tag.

    I’m checking with our developer to see if there is any workaround that could be suggested regarding this.

    Will keep you posted once we get further feedback asap.

    Kind Regards,

    Nithin

    Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hello @datsyuk,

    Could you please try adding the following snippet as a must use plugin, by saving it in a text editor as “forminator-hidden-calc-fields.php”, and uploading the saved file to /wp-content/mu-plugins/ directory on the server:

    <?php
    
    add_filter( 'forminator_custom_form_after_render_value', 'wpmudev_change_calculation_field_value', 10, 4 );
    function wpmudev_change_calculation_field_value( $value, $custom_form, $slug, $prepared_data ) {
        if ( $prepared_data['form_id'] != 683 ) { //Please change the form ID
            return $value;
        }
        
        if ( strpos( $slug, 'calculation-' ) !== false ) {
            $field_settings	= $custom_form->get_field( $slug, true );
    		if ( $field_settings['hidden'] ) {
                $value = '';
            }
        }
    
        return $value;
    }

    – change 683 to your form ID, (used in the form shortcode).

    In case there’s no “mu-plugins” folder in /wp-content/, just create it before uploading the file.

    Hope this helps. Let us know if there’s still any issue.

    Best Regards,
    Dmytro

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @datsyuk,

    Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open the thread if you need further assistance.

    Best Regards
    Nithin

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Repeated Field in Confirmation Mail’ is closed to new replies.