eDaddi Active member Mar 31, 2021 #1 New to XF, I searched templates looking for examples with no luck. Is there no way to add a reset button to clear a form with the <xf:submitrow syntax? Obviously I can add a second button after but it doesn't appear in the same row.
New to XF, I searched templates looking for examples with no luck. Is there no way to add a reset button to clear a form with the <xf:submitrow syntax? Obviously I can add a second button after but it doesn't appear in the same row.
Chris D XenForo developer Staff member Mar 31, 2021 #2 There are a few examples; here's one from the template_modification_edit template: HTML: <xf:submitrow sticky="true" icon="save"><xf:html> <xf:button type="submit" name="test" value="1">{{ phrase('test') }}</xf:button> </xf:html></xf:submitrow>
There are a few examples; here's one from the template_modification_edit template: HTML: <xf:submitrow sticky="true" icon="save"><xf:html> <xf:button type="submit" name="test" value="1">{{ phrase('test') }}</xf:button> </xf:html></xf:submitrow>
eDaddi Active member Mar 31, 2021 #3 Thanks @Chris D Code: <xf:submitrow sticky="true" icon="search"> <xf:html> <xf:button type="reset" icon="toilet">Clear</xf:button> </xf:html> </xf:submitrow>
Thanks @Chris D Code: <xf:submitrow sticky="true" icon="search"> <xf:html> <xf:button type="reset" icon="toilet">Clear</xf:button> </xf:html> </xf:submitrow>
eDaddi Active member Apr 1, 2021 #5 briansol said: lol at the toilet icon use Click to expand... I'm glad somebody caught that