Devide Standard Form Block Into Sections With Other Blocks In between

Permalink
What I am Trying to achieve:
I want to create a form that has a static image, and a static iframe in between form fields. The end result should look like this:
http://www.nwaveenergy.com/commercial-rge.html...

My proposed solution:
Is there a way to modify the standard form block to make this happen? I thought there might be a way to create a custom templates for the "first section" of the form (include begin form tags <form>, and field options), an template for the "middle section" (including form field options) and lastly a template for the "last section" (including form field options, submit button, and closing form tags </form>). If this is possible, i could create a block for the first part of my form, add a image block, add the middle part of my form, add an html block (with ifram code), then add my last for block using the custom templates.

add-ons:
I tried "advanced forms" it does not have the options I need.
ProForms is a good option an am trying now.

Open to other options:
If anyone has a better suggestion or way of doing this I would appreciate that feedback as well.

Thanks in advance!

jlines41
 
jlines41 replied on at Permalink Reply
jlines41
I am starting to think my proposed solution may not be possible. The ending </form> tag can be removed with the custom template, however the submit button is going to be problematic.

The submit button code is generated from the core: [webserver]/concrete5/concrete/core/controllers/blocks/form_minisurvey.php --- on line 186

I was hoping it was generated from:
[webserver]/concrete5/concrete/blocks/form/view.php

Is there anyway to modify the core with custom templates? I'm guessing no.
planist1 replied on at Permalink Reply
planist1
Just a suggestion, but did you try an external form?
RadiantWeb replied on at Permalink Reply
RadiantWeb
ProForms had a major update this week, make sure you are on the latest. Should be huge improvement.

I like the idea of a QuestionType for ProForms though..."block area". That would be cool. I may add that to ProForms. Very easy to do so.

ChadStrat
RadiantWeb replied on at Permalink Reply
RadiantWeb
In fact...I'm going to do so right now just to show why ProForms is so exciting. Will have an update in 20 min.

ChadStrat
RadiantWeb replied on at Permalink Reply
RadiantWeb
Done. ProForms 5.1 now allows you to add Block Stacks to your forms.

ChadStrat
RadiantWeb replied on at Permalink Reply
RadiantWeb
I guess that technically took 30 min plus 10 min to proof and post. :-P

ChadStrat
planist1 replied on at Permalink Reply
planist1
That is just too slow Chad. Unacceptable! I expect more! Just kidding. Products from RadiantWeb are top notch as is their customer service.
jlines41 replied on at Permalink Reply
jlines41
Great! Thanks for adding the additional functionality! No doubt that your customer service is second to none!

The only other issue I was having with ProForms is my question fields keep moving around. When I create a single form I am fine. When I start applying duplicate questions to other forms, the questions in my original form get moved and unorganized.

One other thing I noticed is that the "delete form" functionality was not working.

Overall ProForms is a very well made, useful, and exciting add-on. I apologize if my original post was a bit snarky.
RadiantWeb replied on at Permalink Reply
RadiantWeb
Well....It's new. It's carving out a new and powerful way to manage forms while offering incredible developer flexibility. It's going to have a few growing pains. But all in all, I think it's improving exponentially.

I have not heard of the multiple form questions re-arranging issue. Make sure you report that in the support area.

The delete form does work. It's possible you were trying to delete the package installed form...which you can not. There was a practical reason why at one point....although I do not remember off hand what that was! I will look into it.

ChadStrat
jlines41 replied on at Permalink Reply
jlines41
Ok thanks. I will report the bug in the support area if I experience it again. I am trying the ProForms add on again as we speak.

Yes I was trying to delete the sample form. Thanks for the explanation! No big deal if I can't delete.

The "add block feature" is great!! Thanks again for adding it.

I look forward to helping improve this add-on and thanks again for your help.
jlines41 replied on at Permalink Reply
jlines41
I actually was not aware of this option. Thanks for the heads up. Looking into this now!!
JohntheFish replied on at Permalink Reply
JohntheFish
You could turn your original idea round.

A. Output a form block.

B. Output a content or html block with your in-between text.

C. Output some jQuery to move (B) to where you want it between elements in (A).
jlines41 replied on at Permalink Reply
jlines41
hmmm this is interesting. I don't know a whole lot about jquery. Could you provide more incite?

Thanks in advance.
jlines41 replied on at Permalink Best Answer Reply
jlines41
JohntheFish replied on at Permalink Reply
JohntheFish
I had completely forgotten about this thread. Seems that 6 months apart I came up with the same solution.
jlines41 replied on at Permalink Reply
jlines41
Consistency is key! lol. Thanks again John!
JohntheFish replied on at Permalink Reply
JohntheFish
I have added a form block template designed to support this trick as an idea for my to-do list, probably as an extension to Magic Data forms.

EDIT - this functionality is now provided by Magic Data Forms, see post at
http://www.concrete5.org/community/forums/customizing_c5/custom-for...