Attachment missed when not filling mandatory field
Hi, I have a contour form that have several fields, one of the fields is an attachment field and other that is a mandatory checkbox that have to be filled in order to submit the form.
If i attach a document and do not check the mandatory checkbox and hit submit then i got a error message (which stands that you have to check the checkbox) but then i have to look for the attachment again.
I would really like not to look for the atachment again if i miss to check the mandatory field.
I would suggest that you use the razor version of the macro that handles the validation of the checkbox client side and shouldn't lose the selected file
Attachment missed when not filling mandatory field
Hi, I have a contour form that have several fields, one of the fields is an attachment field and other that is a mandatory checkbox that have to be filled in order to submit the form.
If i attach a document and do not check the mandatory checkbox and hit submit then i got a error message (which stands that you have to check the checkbox) but then i have to look for the attachment again.
I would really like not to look for the atachment again if i miss to check the mandatory field.
Any thing i can try?
Comment author was deleted
Hi Sergio, are you using the razor or usercontrol macro?
I am attaching the contour form directly in a rich text box that later will be used in the page...
Like this http://screencast.com/t/tSDSqAUu7AJ9
Comment author was deleted
Ok and could you tell me wich Contour macro you used (there are 2 ones, one using a usercontrol and the other using razor)
Thanks,
Tim
We are using this umb_macroalias="umbracoContour.RenderForm"
Comment author was deleted
Hey Sergio,
I would suggest that you use the razor version of the macro that handles the validation of the checkbox client side and shouldn't lose the selected file
is working on a reply...