Forums

Use of placeholders and wizard elements

kenmcmahon 04 Jun, 2010
I'm trying to do something simple, but not getting very far!
If I want to insert, say, a horizontal rule in a form, how would I do that? The Placeholder element would seem the logical choice and I can drag it onto a form in the wizard, but can't get it to display enything. I've also tried creating a 'horizontal rule' wizard element, but don't see how I can then add this to the form. It needs to be accessible from the wizard for non-tech users who need to edit the form.

Any help much appreciated.

Cheers

Ken
GreyHead 04 Jun, 2010
Hi Ken,

You can create a Wizard Custom Element for a horizontal rule (or pretty much any other HTML snippet).

Bob
kenmcmahon 04 Jun, 2010
Hi Bob,

Thanks for the swift reply. I've created a wizard element for the rule, i just don't see any way to add it to the form? I expected it might show up in the toolbox, but no. How do I add the element to the form once I've created it?

Thanks

Ken
GreyHead 04 Jun, 2010
Hi Ken,

As far as I know it should show up in the toolbox.

Just checked and - with a couple of quirks - it's OK.

You have to add a parameter to the Wizard Custom Element even if you don't use it. And the result comes wrapped in some placeholder divs:
<div class="form_item">
  <div class="form_element cf_placeholder"><hr /></div>
  <div class="cfclear"> </div>
</div>


Bob
kenmcmahon 04 Jun, 2010
Thanks again Bob, but it still isn't working.
Originally I just had the <hr /> tag in the code field. Have now replaced it with your snippet(although I think you're saying this should be added automatically) and there's still nothing new in the toolbox


GreyHead 04 Jun, 2010
Hi Ken,

That doesn't look like the current release of ChronoForms. Here's what I see:

Bob
kenmcmahon 07 Jun, 2010
Thanks bob, sorted. I was using RC5.0. Have upgraded to RC5.5 and now, with one small glitch it's working fine. The glitch is that in Firefox 3.6.3 MacOS x 10.5.8 you can't drag the placeholder from the toolbox onto the form design. Works OK in IE7 on Windows though.
Thanks again for your help.
Ken
hiperarc 07 Jun, 2010
Thanks again for your help.
jmccuneprCE 25 Oct, 2010
Hi, I created a custom wizard HR placeholder identical to the example given to Ken by GreyHead on June 4, using the screenshot examples, placing 'null' in the parameters box. The placeholder appears in the list as it should but will not drag and drop.

Oh, wait, kenmcmahon mentioned this doesn't work in Firefox (on Mac) -- will have to try it in IE.

ChronoForms_V3.1_RC5.5, Joomla 1.5.21, Windows XP SP3, Firefox 3.6.11

Thanks so much for creating and maintaining this fine software!
GreyHead 25 Oct, 2010
Hi jmccuneprCE,

Did it work OK in IE? I don't have a Mac to test with and I don't think that Max does either.

Bob
This topic is locked and no more replies can be posted.