The issue is that, when we submit the form, the modal dialog closes and "Thank You" message does not appear. Although, as expected if I open the Form again, it would show me the Thank You message.
what should be the best approach to get the thank you message or at least an alert to show successful submission of Form?
Without seeing your code, I can give you my initial thoughts on your situation. I would gather that your form is doing a postback, which is reloading the browser and closing your modal. To get the result that you are looking for, you might consider switching to an AJAX post. Another option would be to pass a value back to the page, through the model and use that value to trigger a JS function that reopens the modal with the desired message.
Umbraco Form with Bootstrap modal
Hi,
I am using umbraco 7 with Umbraco form and showing the Umbraco Forms in the form of a Bootstrap Modal. Something like this:
The issue is that, when we submit the form, the modal dialog closes and "Thank You" message does not appear. Although, as expected if I open the Form again, it would show me the Thank You message.
what should be the best approach to get the thank you message or at least an alert to show successful submission of Form?
Without seeing your code, I can give you my initial thoughts on your situation. I would gather that your form is doing a postback, which is reloading the browser and closing your modal. To get the result that you are looking for, you might consider switching to an AJAX post. Another option would be to pass a value back to the page, through the model and use that value to trigger a JS function that reopens the modal with the desired message.
thanks for your reply - I am actually using the default Form.cshtml comes with Form module and using this bootstrap code in the layout directly:
Because Umbraco Form is posting as a server side post/sumbit and url get redirected
It is not a jquery/client side form submit.
i think that you may open the form in a iframe type dialog so when it post so it will only post the iframe part not the whole page.
This is what I did to show the thank you message as it seems there is a bug in submitting the form using AJAX:
is working on a reply...