We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11149
    • 17 Posts
    Hello,

    I’d like to use a custom field name for the sender email field. So I need to set the emailFrom Property with a placeholder for the of the custom named input field with the sender mail address.
    My Question: What is the syntax for this placeholder?
    I already tried:
    &emailFrom=`[[!+custom_name]]`
    and
    &emailFrom=`[[!+fi.custom_name]]`

    With no effect.
    I know it is possible out of the description of the email Hook Properties.
    Any of the email hook properties can have placeholders of field names from your form in them that will be evaluated.

    Any help is appreciated.
      • 11927
      • 105 Posts
      I did something like that.

      &emailTo=`[[+email_to]]`


      Then in a snippet that I called before FormIt, I did this.

      $modx->setPlaceholder('email_to', '[email protected]');
        You may or may not want to use the code I write. It's probably all against the syntax rules of php and MODx. smiley

        Carpet Cleaning