• Resolved hosroland

    (@hosroland)


    Dear Team,

    I’d like to ask about the register form, and the sending admin mail. I set up the pendig review option, and my admin recieve mail about the form. I insert a dropdown label in register form with her teachers name, and the registrer users have to choose one name of this. But in email don’t show the teacher’s name. Is there any shortcode or manually possibility to insert the Dropdown selected value. My admin need to know which teacher have more student?

    I check the mail template, and here is the code {submitted_registration}, but the selected name doesn’t show. Can We add manually the selected dropdown label value? like [dropdown] or stomething like this?

    Thank you in advance
    Br,
    Roland

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @hosroland

    Could you please tell us what version of UM you’re using?

    Also, have you made any customization with the dropdown field callback function?

    Regards,

    Thread Starter hosroland

    (@hosroland)

    Hi @champsupertramp

    We use 2.1.4.

    No I dont make any customization. I have only one label dropdown. Should I made?

    Br,
    Roli

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @hosroland

    Do you have a profile page setup on your site? Does the Teacher’s name show in the profile form after registration?

    Regards,

    Thread Starter hosroland

    (@hosroland)

    Hi @champsupertramp

    No I think there is no profile page. I just would like to registrer who is invite, (which teacher) the users in our page. I set up a few name in dropdown. They select and we would like to see the inviter name in admin mail. (pending reigstration) Under the {submitted_registration} data. But now isn’t show anything. Onli the other “standard infos”

    There is no shortcode to insert the dropdown value into the mail?

    Thanks
    Br
    Roland

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @hosroland

    Could you please provide a screenshot of the Dropdown field options in the UM Form builder?

    Regards,

    Thread Starter hosroland

    (@hosroland)

    Hi,

    OFC you can see below:
    https://snipboard.io/KTjwgW.jpg

    Thanks
    Roland

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @hosroland

    Thanks for providing the screenshot. Could you please provide the callback function code so we can review it? By the way, have you read the updated doc for creating a callback function? https://docs.ultimatemember.com/article/1539-choices-callback-feature-in-um-2-1

    Regards,

    Thread Starter hosroland

    (@hosroland)

    Hi @champsupertramp !

    Sorry, fortunately I think we don’t use any code in functions.php.

    I think just set up and it will automatically. I checked the documents about the callback. In this case we have to code that, the name of the mentors will show in mail like this: (sorry I just have low coder skills :D)

    function custom_umwoo_mentors_list_dropdown() {
    $mentors = array(
    );

    return $mentors;
    }

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @hosroland

    Please try following the syntax below:

    function custom_umwoo_mentors_list_dropdown() {
    $mentors = array(
       "John Doe" => "John Doe",
       "123" => "John Doe", // Recommended to use at least an ID number
    );
    
    return $mentors;
    }

    Regards,

    Thread Starter hosroland

    (@hosroland)

    Hi @champsupertramp

    Oh thank you man! It’S working! One more question. Can I put the mentor name in the admin mail Subject? “Like “John Doe” student waiting for registration”

    Many thanks man!
    Regards,
    Roland

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Register admin mail’ is closed to new replies.