TOPIC:

Fire javascript 'on click' event within scipt piece before form 1 week 6 days ago #261432

  • Topic Author
  • shinzan
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 75
  • Thanks: 0
Sorry I mean the Initialization Script portion, where I use javascript to actually change the value of the html drowdown. The value changes to what I want but the "onchange" event does not fire.

I want to fire that event inside the init script too.

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

Fire javascript 'on click' event within scipt piece before form 1 week 6 days ago #261435

  • Mirec's Avatar
  • Mirec
  • Offline
  • Gold Breezer
  • Gold Breezer
  • Posts: 454
  • Karma: 2
  • Thanks: 19
Hi,

whether there is a specific reason why do you use the Initialization Script?
Because for that is it better to use ActionScript?

If you want to do some action on change value in your select list in Initialization Script?

You can do it this way:

In your element GO->Adveced->Mope Option -> Scripts ->Initialization Script
and select type 'Custom' and insert this code:
function ff_nameofForm_init()
{
 jQuery("#ff_elem5095").on('change', function(){    // 2nd (A)

//insert your code that will be trigger on change value in element   

});

} // ff_nameofForm_init

Instead, nameofForm insert name of your Form (Not title).
Instead, ff_elem5095 insert the Id of your element. You can find it using Console->Inspect.

If you have more questions, feel free to ask!

Regards,
Mirko

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

Last edit: Post by Mirec.
  • Page:
  • 1
  • 2
Time to create page: 0.043 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!