Hi,
I have a problem to display a Placeholder value with eForm.
If I call the chunk itself, the value is displayed.
If I use eForm to call this chunk, all the different values of the input text are displayed ... but not the one from the textarea ... Why?
Manhy thanks in advance for your help!
Max
Hi Max,
I’m having the same issue, I can’t populate a text area "message"
If I add another input for message below the textarea:
<label for="cfMessage">Message:
<p><textarea name="message" id="cfMessage" eform="Message:textarea:1>[+message+]</textarea></p></label>
<p><input name="message" id="cfMessage" type="text" value="[+message+]" eform="Message::1" /></p>
then it populates the textarea!
Many thanks!
But, don’t you see twice the content? Once in the Textarea and the second time in the input?
Regards,
Max
It seems to work OK if you disable the extra field: ( disabled="disabled" )
<label for="cfMessage">Message:
<p><textarea name="message" id="cfMessage" eform="Message:textarea:1>[+message+]</textarea></p></label>
<p><input name="message" disabled="disabled" id="cfMessage" type="text" value="[+message+]" eform="Message::1" /></p>
this gets the placeholder value into the form but as it’s disabled your form then uses the textarea for the update - seems to be working for me..
Thanks for this proposal, but I cannot afford to have two fields, one textarea and one input, with the same content inside.
And if I apply type="hidden", then the content from the textarea disappear ...
Is it a bug in MODx?
Thanks for your attention,
Max