Disappearing HTML5 form attributes
Permalink
I am trying to create register form, so I've added some code (via Content block) to page, that's an example:
After saving & publishing changes page source shows that all new attributes has been omitted:
of course declaration is used for this page,
Is there any way how to fix this behaviour?
I want to have two separate forms displayed within one slider and while first form is short and is displayed as single slide (slide 1), the other one has its content divided into three slides - and I need attribute to connect form elements that are displayed on slide 3 and 4 to (second) form that is displayed on slide 2 (as obviously I can't open element within one slide and close it up within another one).
<form id='reg'> <label for='reg-name'>First name</label> <input type='reg-name' name='reg-name' required aria-required='true' placeholder='John' form='reg' /> </form>
After saving & publishing changes page source shows that all new attributes has been omitted:
<form id='reg'> <label for='reg-name'>First name</label> <input type='reg-name' name='reg-name' /> </form>
of course
<!DOCTYPE html>
Is there any way how to fix this behaviour?
I want to have two separate forms displayed within one slider and while first form is short and is displayed as single slide (slide 1), the other one has its content divided into three slides - and I need
form
form
I'm afraid that creating a form is not that simple. I believe that tinyMCE is butchering your tags but even is it rendered the way you wrote it, the form would not work. Forms need 'controllers' to process the form submission.
Have a look at these 2 posts. The first one is an explanation of how to create an 'external form' and the second one is an alternative that involves building your own custom form block.
http://www.concrete5.org/community/forums/chat/external_forms_file_...
http://www.concrete5.org/community/forums/chat/external-form-with-o...
How you are going to spawn this form across your slides is a whole other question but you first need to understand how to create a form in the first place.
Have a look at these 2 posts. The first one is an explanation of how to create an 'external form' and the second one is an alternative that involves building your own custom form block.
http://www.concrete5.org/community/forums/chat/external_forms_file_...
http://www.concrete5.org/community/forums/chat/external-form-with-o...
How you are going to spawn this form across your slides is a whole other question but you first need to understand how to create a form in the first place.
it should be:
sorry for that