HTML auto complete, can't add custom form
Permalink
I'm not sure my subject is the most descriptive way I could describe my problem, but I was trying to be brief. My problem is as follows: I am trying to include a form which takes in user input, runs a javascript, and outputs the data on the same page. However, I need to spread this form out across several blocks for it to be formatted visually how I'd like. This requires me to insert the form open and close declarations in separate blocks. Within each block containing the open and close, C5 seems to be autocompleting the declarations, so I end up with two different form open/close tags, and my form doesn't work. Does anyone know of this issue and a way to get around it?
I'm not sure how helpful my code will be so I didn't include it, but will do so upon request.
I'm not sure how helpful my code will be so I didn't include it, but will do so upon request.
Hi Rony,
Your solution didn't seem to fix my problem. Could you (or anyone reading this thread) check out my code? The URL of the page is here:http://exrx.net/concrete5.6/index.php?cID=191...
The relevant code starts on line 211
Thanks!
Jim
Your solution didn't seem to fix my problem. Could you (or anyone reading this thread) check out my code? The URL of the page is here:http://exrx.net/concrete5.6/index.php?cID=191...
The relevant code starts on line 211
Thanks!
Jim
Nevermind, found the error (my syntax was bad). Rookie mistake. Thanks for the help!
So it solved your problem? If so, mark this as best answer, so others can get help.
I marked your answer as the best answer, but to clarify, this is what I had to do:
create a page type (*.php) in text editor based off of a pre-defined page type and saved it in the directory containing our page types (/packages/bootstrap/elements/bootstrap/common). I found the blocks in which I wanted to include my form, and put the <form> and </form> tags around that block. The secondary problem was that my javascript declaration syntax was incorrect. This second problem is obviously solvable within the C5 page edit UI, but the only way around the auto-complete of the form tags was to manually edit and save a new page type in a text editor, outside of the C5 UI.
create a page type (*.php) in text editor based off of a pre-defined page type and saved it in the directory containing our page types (/packages/bootstrap/elements/bootstrap/common). I found the blocks in which I wanted to include my form, and put the <form> and </form> tags around that block. The secondary problem was that my javascript declaration syntax was incorrect. This second problem is obviously solvable within the C5 page edit UI, but the only way around the auto-complete of the form tags was to manually edit and save a new page type in a text editor, outside of the C5 UI.
Rony