• Resolved djmancho

    (@djmancho)


    In my registration form I have put a box where whoever registers can select the department where they live from 32 options, and then select the city depending on the department they selected in the previous box.

    The problem I have is that after finishing the registration in the email that reaches the person who registered and the website administrator all the options that were not selected with the text “empty” appear.

    I need only the options marked in the dropdown to arrive in the Email.

    How do I do it?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support mansurahamed

    (@mansurahamed)

    Hi @djmancho,

    UM provide hooks for creating your custom email tag. Here is an example of how to create your own custom tag. You can create one for the fields you want to show and use your tag in the welcome email instead of {submitted_registration}.

    add_filter( 'um_template_tags_patterns_hook', 'my_template_tags_patterns', 10, 1 );
     function my_template_tags_patterns( $placeholders ) {
    $placeholders[] = '{my_custom_tagname}';
     return $placeholders;
    }
    add_filter( 'um_template_tags_replaces_hook', 'my_template_tags_replaces', 10, 1 );
    	 function my_template_tags_replaces( $replace_placeholders ) {
    	 $replace_placeholders[] = um_user('my_custom_field_value');
    	 return $replace_placeholders;
    	 }

    Thanks.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @djmancho,

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved…

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help… ??

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Do not show in the email the boxes not selected in the Dropdown’ is closed to new replies.