TOPIC:

Re: Calendar Button 11 years 10 months ago #21798

  • goshmac's Avatar
  • goshmac
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 113
  • Karma: 5
  • Thanks: 0
hehe :)
hi!

i guess your are not using your controls name, but the id breezingform has giving to it!

then you have to use: ff_getElementById

otherwise use the real name, you can assign yourself to a textbox ;)


@tdemnati
Do you want to use the date-time-picker instead of the default joomla calendar? hope, i understood you right..

matthias

Please Log in or Create an account to join the conversation.

Last edit: Post by goshmac.

Re: Calendar Button 11 years 10 months ago #21807

  • kabatza
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 14
  • Thanks: 0
Hi again.... :)

No if i use the breezing forms ID it works good, but the ID changes every time I clone the form. So I have to look at the code again to find the new ID.
When I use the ID it looks like this: {"ff_elem555":"d-sl-m-sl-Y"}

now if i name my element in breezing forms xxxx, when I view the page source in firefox the name has become ff_mn_xxxx[] and thats what I tried to use!

Ive tried these:
a) ff_getElementByName()
b) return ff_getElementByName()
c) "ff_getElementByName()"
d) ff_getElementByName().id
e) return ff_getElementByName().id

none of these worked :unsure:

Please Log in or Create an account to join the conversation.

Re: Calendar Button 11 years 10 months ago #21813

  • tdemnati
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 11
  • Thanks: 0
Yes indeed. I just want to use the date-time-picker instead of the joomla calendar or At least be able to use the selected date in the summary.

Tarik

Please Log in or Create an account to join the conversation.

Re: Calendar Button 11 years 10 months ago #21833

  • goshmac's Avatar
  • goshmac
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 113
  • Karma: 5
  • Thanks: 0
Hi kabatza!

you are right with the ID..but with the name you should use the name you have given to it...thats how i am using it...and it works ;)
i guess breezing form knows which textbox you want to get cause you are using a breezing form function...ff_mn_ seems to be just a prefix ;)

so just try:
return ff_getElementByName('xxxx');

i don't know if there is a property called 'id' for this object...would be nice :)

matthias

Please Log in or Create an account to join the conversation.

Re: Calendar Button 11 years 10 months ago #21834

  • goshmac's Avatar
  • goshmac
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 113
  • Karma: 5
  • Thanks: 0
Hi Tarik!

i don't know how to do this...maybe you have to hack joomla for this..

what do you mean with the summary?

matthias

Please Log in or Create an account to join the conversation.

Last edit: Post by goshmac.

Re: Calendar Button 11 years 10 months ago #21836

  • kabatza
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 14
  • Thanks: 0
Hi, and thanks for the patience with us, the newbies :blink:

I'm gonna go crazy here because it does not work with me :S

Ok, my field is called "reservdate" and it has Id="ff_elem4171"

So using the element id like this......
<script type="text/javascript">// <![CDATA[
datePickerController.createDatePicker({formElements:{"ff_elem4171":"d-sl-m-sl-Y"}});
// ]]></script>
Works Great, but will stop working in a cloned form.


But replacing {"ff_elem4171":"d-sl-m-sl-Y"}
with {return ff_getElementByName('reservdate'):"d-sl-m-sl-Y"} it does not work.
<script type="text/javascript">// <![CDATA[
datePickerController.createDatePicker({formElements:{return ff_getElementByName('reservdate'):"d-sl-m-sl-Y"}});
// ]]></script>
This if I can make it to work should keep working with any form having a textfield named "reservdate". But I cant seem to be doing ir right!!
I don't see what I do wrong, can you?
Can you please copy paste your code, of a tested working form, so I can compare them and see what I do wrong???


By the way... there is a property called "id"
Try this....
<script type="text/javascript">// <![CDATA[
{
xxxx = ff_getElementByName('reservdate');
document.write(xxxx);
};
// ]]></script>
it will display: [object HTMLInputElement]

Now put the .id at the end like this
<script type="text/javascript">// <![CDATA[
{
xxxx = ff_getElementByName('reservdate').id;
document.write(xxxx);
};
// ]]></script>
and it will display: ff_elem4171 (with another number of course)


Thanks again!
Bye for now

Please Log in or Create an account to join the conversation.

Last edit: Post by kabatza.
Moderators: ForumSupport
Time to create page: 0.053 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!