TOPIC:

JQuery doesn't execute in Preview 1 year 3 weeks ago #265850

  • Admin@opendofe.org's Avatar Topic Author
  • Admin@opendofe.org
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 62
  • Thanks: 0
This is a weird one.
I have a form with radio buttons with 2 values
1;Yes;yes
0;No;no

I am trying to extract the value of the selected button, but while it works on the web page proper, it doesn't work in preview, neither preview not site preview
JS/JQuery:
function ff_rdPay_action(element, action)
{
    switch (action) {
        case 'change':
alert('test');
alert(JQuery('input[name="ff_nm_rdPay[]"]:checked').val());
            break;
        default:;
    } // switch
}     // ff_rdPay_action
The first alert executes OK, and displays 'Test', but the second doesn't appear to execute in either Preview.
On the site, it displays 'no' correctly

How do I go about tracking down the issue?

Joomla 3.10.2
BreezingForms 1.9.1 Stable (build 941)

Thanks, Mike
Mike

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

JQuery doesn't execute in Preview 1 year 3 weeks ago #265859

  • tihana.krivic's Avatar
  • tihana.krivic
  • Away
  • Moderator
  • Moderator
  • Posts: 11811
  • Karma: 3
  • Thanks: 763
Hi,

please try to define radio group like:
0;Yes;yes
0;No;no
and please check if cache is disabled in System->Global congiguration->System->System cache->set it to off

Let me know the result

Regards,
Tihana

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

JQuery doesn't execute in Preview 1 year 2 weeks ago #265918

  • Admin@opendofe.org's Avatar Topic Author
  • Admin@opendofe.org
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 62
  • Thanks: 0
Same response with both radio buttons deselected.
Cache is off

Interestingly, it works fine in preview on an Android phone, but not on win 10.
Uninstalled and reinstalled joomla and breezing forms. No change.

Happy to provide a package to you or system access if that'll help.

Mike
Mike

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

JQuery doesn't execute in Preview 1 year 2 weeks ago #265924

  • tihana.krivic's Avatar
  • tihana.krivic
  • Away
  • Moderator
  • Moderator
  • Posts: 11811
  • Karma: 3
  • Thanks: 763
Hi,

please send me login information, backend link, and frontend link of that form.

Use this tag:
[confidential]
[/confidential]
Please write name of form too.

I will test it

Regards,
Tihana

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

JQuery doesn't execute in Preview 1 year 2 weeks ago #265931

  • Admin@opendofe.org's Avatar Topic Author
  • Admin@opendofe.org
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 62
  • Thanks: 0
Hi Tihana

URL to the form is mjha.net/administrator/index.php?option=...ayMembership&form=12
The form page is mjha.net/index.php/home/pay-for-membership
The form can be refreshed using the sub-menu Pay for Membership in the Home Menu
In BreezingForms, the form is the top one - frmPayMembership.
I have put 2 alerts into the Radio Buttons "Pay for membership "- rdPay.
function ff_rdPay_action(element, action)
{
    switch (action) {
        case 'change':
alert(action);
               val = '';
               val = JQuery('input[name="ff_nm_rdPay[]"]:checked').val();
alert(val);
...

These seem to somehow kill the JS/JQuery code in Preview mode.
On the web site, I get the two alerts.
I have seen BreezingForms functions fail too, but didn't note what they were.

This message contains confidential information
Mike

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

JQuery doesn't execute in Preview 1 year 2 weeks ago #265937

  • tihana.krivic's Avatar
  • tihana.krivic
  • Away
  • Moderator
  • Moderator
  • Posts: 11811
  • Karma: 3
  • Thanks: 763
Hi,

ok, I will test it, and come back to you

Regards,
Tihana

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.052 seconds

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

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!