I am having an issue when submitting a form when there is no redirect. Basically i have a contact us form and eventually will implement a email action. But every time i click the submit button even without filling any data, the page will go to a form builder page.
my form
after clicking the send button (things i typed will be already there also)
I can put a redirect on this submit action and will redirect to another page with out any issue. But my requirement is to stay on the page so i am showing the form in a bootstrap modal and when submit i want the modal to close and stay on the page. i try to make the form a 2 page, where the second page will have a thank you text and the send button navigation step will be next page. But same thing happen where the browser will redirect to form builder link with un-styled form. all the functionality of form work in this link including the next page. H
We are dropping the form on a modal like this with our own rendering, but the issue happens even if we are simply dropping the form with regular defualt mvc rendering
<div class="modal hide fade" id="@modalId" tabindex="-1" role="dialog" aria-labelledby="">
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<div class="dnowZoomIcon d-flex justify-content-center">
<i class="ion-ios-close-empty align-self-center"></i>
</div>
</button>
</div>
<div class="modal-body">
@Html.Sitecore().Rendering("{6B5$#$#$#E6-5C85-44%87-BA7E-F8C2ECC186A8}", new { Datasource = Model.Id.ToString("B"), UniqueId = Model.Id.ToString("B") })
</div>
</div>
</div>
we added renderform styles and script in our main layout like this