Forum

Thread tagged as: Question, Forms

Using target attribute in forms app

The target="_blank" attribute is removed automatically from the form tag in the forms app. Is this feature not available in this addon?

Martin Elliff

Martin Elliff 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you mean in your form template, or somewhere in the Forms app?

e.g. <perch:form id="demonstration" method="post" app="perch_forms" role="form" target="_blank">

The target attribute gets stripped out. The form works fine but the client wants the form to open a new window and not reload the current one.

Drew McLellan

Drew McLellan 2638 points
Perch Support

There's no option for setting the target attribute currently. You could consider using JavaScript to control window behaviour in this case.