Module Forms for the Frontend Customization

mohammed_abdallah - 1 month ago

peace for all i need to use form module with a custom view of mine but how to put the same action of the generated form to the new design of mine in other words i want the same one to this {{ form('feed_backs','feed_backs').redirect('feed_backs') | raw}} with plain html

<

form action="????" method="post"> so what the value of action will be ??

fryiee - 1 month ago

{% set form = form('feed_backs').redirect('feed_backs').get %}
{{ form.open|raw }}
{# loop through your fields here (ie form.fields) or target them individually (ie form.fields.slug) #}
{{ form.actions|raw }}
{{ form.close|raw }}

mohammed_abdallah - 1 month ago

good i made it before but it repeat the fields many times i don't know why