We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26932
    • 5 Posts
    Hi Dears

    Can help me somebody how can I set in ContactForm more like

    <label for="cfName">&nbsp;Nume Prenume:&nbsp;&nbsp;
    <input name="name" id="cfName" size="50" class="text" type="text" eform="Your Name::1:" /> </label>

    <label for="cfEmail">&nbsp;Adresa de e-mail:
    <input name="email" id="cfEmail" size="50" class="text" type="text" eform="Email Address:email:1" /> </label>

    maybe Phone number. I want people who contact me can write in contact form: name, email, phone nr and subject.

    Can help me somebody.

    Thanks
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Just add the fields you want to the chunk. Make sure they have the eform attribute. Their values will be available as [+field-name+].
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 26932
        • 5 Posts
        Thank`s

        You can explain to me step by step what can I do?

        Sorry but I`m beginer in eForm
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          <label for="cfName"> Nume Prenume:  
          <input name="name" id="cfName" size="50" class="text" type="text" eform="Your Name::1:" /> </label>
          
          <label for="cfEmail"> Adresa de e-mail:
          <input name="email" id="cfEmail" size="50" class="text" type="text" eform="Email Address:email:1" /> </label>
          
          <label for="cfPhone"> Telephone:
          <input name="phone" id="cfPhone" size="50" class="text" type="text" eform="Telephone Number::1" /> </label>
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 26932
            • 5 Posts
            Thank You

            I put the code in ContactForm and the code is ok. I try to use, I compleet all lines (name, mail, phone, message), default appear in message what I recived (name, mail and message ) but phone number not. Look follow recived mail:

            This is a response sent by Olah Robert using the feedback form on the website.
            The details of the message follow below:

            Name: Olah Robert
            Email: [email protected]
            Regarding:
            comments:
            test modx
            You can use this link to reply: [email protected]

            Dont need to add some settings in other files in eForm or I don`t know?
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Yes. You have to add a line for the new field in the report, using the [+phone+] placeholder.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 26932
                • 5 Posts
                Thank you so much

                It is working! You are helping me much.
                Now I understand how it works.
                If I need more option, need to insert line in contactForm and set in contactReport, it is right?

                Whatever, I`m grateful for support.