amforms
amforms copied to clipboard
Using form's namespace in custom form template goes wrong
When using a custom form template and using {{ form.displayField('handle') }} for showing fields, the {{ namespace }} is not working.
<input type="hidden" name="namespace" value="{{ namespace }}">
This should then be
<input type="hidden" name="namespace" value="{{ form.getNamespace() }}">
This will trigger the service to set a "$this->namespace" variable and this will be used to generate the field names. This should be the same for both ways I guess?
Therefor my custom form is not submitting yet. At least; it submits but coming back with pre-filled fields and no submission and no notifications. Will investigate this.