We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36582
    • 463 Posts
    I have read some older posts about this but wondered if it was now possible to do the following in 1.4.4.6?

    <select name="subject" id="cfRegarding" eform="Form Subject::1">
    			<option value="General">General Enquiry</option>
    [!Ditto? &parents=`51` &tpl=`regardTpl` &display=`all` &depth=`1` &sortBy=`menuindex` &sortDir=`ASC` !]
    		</select>


    Where `regardTpl` has a value of

    <option value="[+menutitle+]">[+menutitle+]</option>


    Many thanks.
      Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk
      • 36416
      • 589 Posts
      Quote from: chrisandy at Nov 24, 2009, 06:50 AM

      I have read some older posts about this but wondered if it was now possible to do the following in 1.4.4.6?

      Nope, you’d need to call Ditto inside eForm::OnBeforeParse with RunSnippet API; then replace returned value into form template...
        • 36582
        • 463 Posts
        Thanks for your reply - I’ll have to take another look as I couldn’t get the examples to work.
          Web site design in Nottingham UK by Chris Fickling http://www.chrisficklingdesign.co.uk