We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35408
    • 4 Posts
    Hi ModX community,
    I am somewhat new to the FormIt package and have honestly not dug much deeper than the basic examples so my query may somewhat sophomoric in nature.

    Question: I have a form that offers a selectlist of options that the user can select from to choose the recipient of the form submission, basically a list of users with each option of the select list being that user's email address.

    I would like to be able to obscure the actual email address from the HTML form elements and have some sort of unique ID or hash tag that would translate to each users address in the actual code. End result never actually offering the sendTo option as an actual email address in the HTML in the resource.

    This seems like a common thing for security reasons and in straight php I would simply build an assoc. array of Key => Email for each user so that the code would know which key was passed and then send to that value.

    I assume that I could do this with a custom snippet but if there is a creative way to handle this with just FormIt, I would love to get some ideas.

    thanks in advance.