I seem to have a problem whereby dynamic placeholders used within the &subject parameter do not get picked up.
Here’s the snippet call:
[!eForm? &formid=`ContactForm` &subject=`[+name+]` &to=`[email protected]` &tpl=`ContactForm` &report=`ContactFormReport` &gotoid=`14` !]
Here’s the form:
<form method="post" action="[~[*id*]~]" id="ContactForm" name="ContactForm" class="basic">
<fieldset>
<input name="formid" type="hidden" value="ContactForm" />
<ol>
<li>
<label for="name">Your name:</label>
<input name="name" id="name" class="text" type="text" eform="Your Name::0:" />
</li>
<li>
<label for="email">Your Email:</label>
<input name="email" id="email" class="text" type="text" eform="Email Address:email:1" />
</li>
<li>
<label for="message">Message:</label>
<textarea rows="5" cols="30" class="text t-area" name="message" id="message" eform="Message:textarea:1"></textarea>
</li>
<li class="submit">
<label> </label>
<input type="image" src="/img/buttons/send.gif" name="contact" id="cfContact" class="button" value="Send" />
</li>
</ol>
</fieldset>
</form>
All the details come through on the report but in the subject of the email I get "0" (the number zero)
However, if I change the subject param to:
&subject=`message from [+name+]`
I just get "message from"
Very strange...
Also could someone point me to some documentation of the eform attribute as I haven’t found any
thanks
I’m using modx 0.9.5 and eform 1.4.3
Your help would be much appreciated.