XF 2.0 Question regarding custom form in template

GPA-R

Active member
Hi,

I know its best practice to use xf:form (which I can't find any documentation on) however is it OK to use a custom form in a template or is it BAD practice? (I differentiate OK and BAD practice)

Thanks in advance :)
 
Last edited:
If you know why you want to use <form> over <xf:form> then there's no reason not to.

If it's just submitting into the XF framework though, <xf:form> is preferred as it takes care of things like CSRF tokens for you. Should we ever make changes here down the line, then you wouldn't need to change anything manually (whereas with a manual form, that couldn't be guaranteed).
 
Back
Top Bottom