Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
hello, my name is dennis, i´m new here and my english is not the best :D
but i have one question about the message on submit in the forms.
@if (Model.SubmitHandled) { if (Model.RenderMode == "full" || Model.RenderMode == "form") { <p class="contourMessageOnSubmit">@Html.Raw(Model.MessageOnSubmit)</p> } }
so my question: could i insert instead of
@Html.Raw(Model.MessageOnSubmit)
some diffrent code, that i can insert a field from the current page where the form is rendered? for example a textfield called "confirmText"?
Thanks in advance!
Dennis
Hi Dennis,
You can customize text on the submit button, and also the message that you get after the page has been submitted.
Try to see this documentation https://our.umbraco.org/documentation/Add-ons/UmbracoForms/Editor/Creating-a-form/Form-Settings/
Hope this helps,
/Dennis
hi Dennis ^^,
thanks for the fast answer!
but my problem is that i want to use one form for many pages, and with every page i want to have a diffrent submit message.
hope you understand my problem :/
so, found a solution :D
maybe it could help someone else!
@if (Model.SubmitHandled) { if (Model.RenderMode == "full" || Model.RenderMode == "form") { var cpage = umbraco.NodeFactory.Node.GetCurrent().GetChildNodes().First().Id; HttpContext.Current.Response.Redirect(string.Format("{0}", umbraco.library.NiceUrl(cpage))); } }
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco Forms: Customize Submit Message
hello, my name is dennis, i´m new here and my english is not the best :D
but i have one question about the message on submit in the forms.
so my question: could i insert instead of
some diffrent code, that i can insert a field from the current page where the form is rendered? for example a textfield called "confirmText"?
Thanks in advance!
Dennis
Hi Dennis,
You can customize text on the submit button, and also the message that you get after the page has been submitted.
Try to see this documentation https://our.umbraco.org/documentation/Add-ons/UmbracoForms/Editor/Creating-a-form/Form-Settings/
Hope this helps,
/Dennis
hi Dennis ^^,
thanks for the fast answer!
but my problem is that i want to use one form for many pages, and with every page i want to have a diffrent submit message.
hope you understand my problem :/
/Dennis
so, found a solution :D
maybe it could help someone else!
is working on a reply...