Hi, I saw something similar posted here /t5/TeamSite/SitePublisher-changing-form-action/td-p/167264 advising that the type="external" be added to the form tag.
After following that advice (adding the type='external' attribute) the post action isn't output, however the output markup of the form tag is being self terminated.
We have a 'single page app' which has multiple form tags with enclosing form elements. This content is added via a textarea DCT item, in essence an HTML bucket.
This is on Livesite 7.1
The markup entered into the DCR looks like:
<div>
<form>
<div>
<input type="text"/>
......... (etc etc)
</div>
</form>
</div>
After reading that forum issue above, I added the type="external" attribute but now what I see is the form tag being self terminated. The output markup from Livesite looks something like:
<div>
<form method="post"/>
<div>
<input type="text"/>
......... (etc etc)
</div>
</form>
</div>
i.e. the opening form tag is terminated, also leaving the ending form tag.
In the DOM our form inputs are therefore no longer children of the form element which is messing up our styling. We're sure we have other form markup on other pages also added via the textarea DCT item, we definitely have other forms being created via components/xslt and haven't seen this before.
Is there a way to stop this behaviour? We could remove the form elements but it'll create more work to fix our CSS and JavaScript
Thanks