I need to style a particular form so inside the "View > Forms" I've created another folder with the Form Id and placed both the below inside
FieldType.Textfield.cshtml
Form.cshtml
But my Form.cshtml is having lots of Red color text in Visual Studio indicating errors. not really sure what's the issue The form can be loaded but i'm not able to send out anything with "Cannot call method ' setDefaults' for contourform.js"
I don't know if you have found a solution yet? but the reason why those methods generate errors is because there are some errors in the text format of the @Inherit line.( i've hade this problem aswell)
To fix this you have to go into the form.cshtml file via a text editor (i.e notepad) and change the font to the proper one. For the moment i don't have any explaination for this, but i assume it is either the author of this file or MVC is generating some strange fonts. (haven't hade time to research why it occurs)
And the reason why that method can't be called probably has to do with "jquery validator" being loaded after contourform.js or not at all.
Hello what does this mean? "To fix this you have to go into the form.cshtml file via a text editor (i.e notepad) and change the font to the proper one"
Cannot call method 'setDefaults' for contourform.js
I've tried to pull in a contour form to be used in a page and got the above error.
Full error details:
Uncaught TypeError: Cannot call method 'setDefaults' of undefined
It's happening in "contourform.js" line (4) as below
Just wasn't so sure how to resolve this. Appreciate all help.
Thanks
I need to style a particular form so inside the "View > Forms" I've created another folder with the Form Id and placed
both the below inside
The form can be loaded but i'm not able to send out anything with "Cannot call method ' setDefaults' for contourform.js"
Hi Jeric!
I don't know if you have found a solution yet?
but the reason why those methods generate errors is because there are some errors in the text format of the @Inherit line.( i've hade this problem aswell)
To fix this you have to go into the form.cshtml file via a text editor (i.e notepad) and change the font to the proper one.
For the moment i don't have any explaination for this, but i assume it is either the author of this file or MVC is generating some strange fonts.
(haven't hade time to research why it occurs)
And the reason why that method can't be called probably has to do with "jquery validator" being loaded after contourform.js or not at all.
Hope that helps.
Best Regards,
Hampus
Hello what does this mean? "To fix this you have to go into the form.cshtml file via a text editor (i.e notepad) and change the font to the proper one"
is working on a reply...