Support » Plugin: Forminator - Contact Form, Payment Form & Custom Form Builder » Mail e Submission form multiple selection

  • Resolved mominet

    (@mominet)


    Hello,
    I have a problem with a form with multiple selection.
    In practice, from the numerous choice items (about 20) I need to select all the items you want, I do it but then both in the email that arrives and in the submissions there are only a few (generally only the first or the first two) that have been selected.
    The beauty is that having the tablesome plugin I tried to generate a table from those forms and all the selected items appear in tablesome.

    Is there something I don’t understand? It is strange that the database and the sending of internal emails to the plugin do not work well while an external plugin manages the data better

    thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @mominet

    I hope you are doing well.

    Could you please export your form https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export and share using Google Drive so we can take a look for you?

    Best Regards
    Patrick Freitas

    Thread Starter mominet

    (@mominet)

    Thanks for your answer

    This is the Google Drive link:
    https://drive.google.com/file/d/1haqq5nltldC43vplC7WetXhuUhf34odd/view?usp=sharing

    the strange thing is that with the trigger tablesome in this all entries are displayed while even exporting the submission csv results with missing fields

    thank you

    Thread Starter mominet

    (@mominet)

    Maybe I didn’t understand well and I haven’t fully understood yet 🙂 but now the data arrives complete by selecting option values in Multiple Option Value.

    Now I have another problem, regarding the layout of the notification email and / or the saving between submissions:
    in case of multiple selection, since numerous items must be selected in my form, both in the mail and among the submissions the data are shown “in line” separated with a comma, they can be shown “in column” by going to head for each data ?

    Thank you

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @mominet,

    Maybe I didn’t understand well and I haven’t fully understood yet 🙂 but now the data arrives complete by selecting option values in Multiple Option Value.

    I could replicate on your form export, it seems like the spaces in the value are causing an issue and causing the data to not get saved.

    There are empty spaces present for most of the option values and that’s causing the issue.
    https://imgur.com/B1yOJQW

    The same is the case with multiple select options used where:

    Handanovic;Handanovic; 0
    Montipo' ;Montipo' ; 0
    Radu I. ;Radu I. ; 0

    In the above you’ll notice there are spaces before the semicolon, spaces should be present after the semi-colon and not before.

    This would be the correct format:

    Handanovic; Handanovic; 0
    Montipo'; Montipo'; 0
    Radu I.; Radu I.; 0

    Could you please update the select field accordingly and then check if you still face anomalies regarding this?

    I’ll make sure to bring this to our team’s attention to see whether there is any way to resolve such anomalies on the plugin side.

    in case of multiple selection, since numerous items must be selected in my form, both in the mail and among the submissions the data are shown “in line” separated with a comma, they can be shown “in column” by going to head for each data ?

    I’m afraid, there isn’t any out of the box setting regarding this. If there won’t be any changes to the current format of your form then you could try the following snippet and see whether it helps:

    <?php
    
    add_filter( 'forminator_get_formatted_form_entry', function( $html ){
    		$html = str_replace(',', '<br>', $html);
    		return $html;
    	} );

    The above snippet can be added as a mu-plugins. Please check this link on how to implement the above code as a mu-plugins:
    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Please do let us know how that goes.

    Kind Regards,
    Nithin

    Thread Starter mominet

    (@mominet)

    Hi Nithin,
    thank you for the clear and complete answers

    Could you please update the select field accordingly and then check if you still face anomalies regarding this?

    Ok, the problem was that of semicolons 🙂 removing the spaces altogether the data is complete.

    The problem is that the data entered in that way set them automatically when I simply bulk inserted the list of names, maybe there were spaces after the names on the text file from which I copied the data, probably my mistake: D I will be careful if in the future this should recur due to having to do many similar forms

    I’m afraid, there isn’t any out of the box setting regarding this. If there won’t be any changes to the current format of your form then you could try the following snippet and see whether it helps:

    Great! works.
    The mail now arrives in the desired format

    Thank you so much and ….. forminator forever 🙂

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @mominet

    I hope you are doing well.

    We are happy to hear it is working now.

    If you have a moment, I would very much appreciate it if you could quickly rate our plugin. This will help us keep the plugin available for free.

    https://wordpress.org/support/plugin/forminator/reviews/#new-post

    Best Regards
    Patrick Freitas

    Thread Starter mominet

    (@mominet)

    Hi @wpmudevsupport12
    Certain 😉

    I’m going to review immediately

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