22 June 2010 at 12:10pm
Right, except that in my case, I need the form field Titles to come after the form field, which is a little harder to accomplish with css unless I use the left: attribute and swap them around. It will just get a little harry doing it that way. I'm looking at the API for Form() as it seems to follow that, but still not finding how to display the submit button yet...still loooking.
22 June 2010 at 12:32pm
Well, what I was talking about with the submit button was....if I use the code above, how do I display the submit button and the <form tag?
I'm reading here: http://api.silverstripe.org/2.4/forms/core/Form.html#var$fields and looking at the Variables, but I just don't get it. And when I try stuff it doesn't work, or it may be that UserDefinedForms does not actually extend the Forms class.
using the Code above, I can almost rebuild the entire form, but I cannot figure out how to get the submit button to show...using what variable? ie $Submit and also the form tag? ie <form action="$action" method="$formMethod" $options>
22 June 2010 at 12:46pm
Never had that problem with USerDefinedForms, the submit button is always there and the text on it set by the user in the CMS.
If you want complete control over the form layout and don't need/want the user to set it up with the CMS then [url=http://doc.silverstripe.org/tutorial:3-forms]tutorial 3[/url] deals with writing forms.
You should be able to use UDF to achieve your goals though without needing to touch any code or even template. Just set up the form in the CMS and use css to deal with layout and styling.