TOPIC:

Error Alert not disappear (mobil android) 9 months 1 week ago #270493

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

please go to form->Advanced->more options->Scripts->Initalization script->check Custom->Create code framework->and inside generated function add:
JQuery(".formError").remove();

Let me know the result

Regards,
Tihana

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

Error Alert not disappear (mobil android) 9 months 5 days ago #270508

  • RonnyM's Avatar Topic Author
  • RonnyM
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 70
  • Thanks: 0
This one doesn't work:

function ff_Gesundheitsfragen_init()
{
     JQuery(".formError").remove();
} // ff_Gesundheitsfragen_init


And this one doesn't work either:

function ff_Gesundheitsfragen_init()
{
    switch (action) {
        case 'change':
JQuery(".formError").remove();
            break;
        default:;
    } // switch
} // ff_Gesundheitsfragen_init

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

Error Alert not disappear (mobil android) 9 months 5 days ago #270512

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

what you can try is delete visibility rules from form->Advanced.
And then use javascript and visibility rules:
crosstec.org/en/support/online-documenta...s-in-javascript.html

Make a copy of your original form to test this.

For this you need to have in form->Advanced->Visibility rules:
 turn on element mydummy if yourdummy is something
Leave this as it, don't change anything.

Then go on each radio group and make a visiblity if select is"Yes" then turn on what you want, if "No" turn off

Go to each radio group->Advanced->Actionscript->chekc Custom ->check Change:
function ff_radioelem_action(element, action) //where radioelem is the name of the radio group
{
     switch (action)
     {
          case 'change':
          vals = '';
          opts = JQuery("[name=\"ff_nm_radioelem[]\"]");
          for (o = 0; o < opts.length; o++)
          if (opts[o].checked)
          {
               vals = opts[o].value;
          }
          if (vals=="yes") // here you can add further dependencies
          {
                bfToggleFields('on','section','sec3',bfDeactivateField);
                 bfToggleFields('on','element','nameofelement',bfDeactivateField);
          }
          else
          {
               bfToggleFields('off','section','sec3',bfDeactivateField);
               bfToggleFields('on','element','nameofelement',bfDeactivateField);
          }
          break;
          default:;
     } // switch
} // ff_radioelem_action
-radioelem is name of your radio group (not title).
-yes is value of radiogroup (not title)
-sec3 is name of section (not title)
-nameofelement is name of element (not title)

If you want to turn on section then use in bfToggleFields section, if you want to turn on/off element then use in bfToggleFields element

Hope this will help.

P.S: this code:
function ff_Gesundheitsfragen_init()
{
    switch (action) {
        case 'change':
JQuery(".formError").remove();
            break;
        default:;
    } // switch
} // ff_Gesundheitsfragen_init
can't be there on this way, it can be in actionscript of each element

Regards,
Tihana

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

Last edit: Post by tihana.krivic.

Error Alert not disappear (mobil android) 9 months 5 days ago #270537

  • RonnyM's Avatar Topic Author
  • RonnyM
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 70
  • Thanks: 0
This is well beyond my programming skills. I have now solved it "quick and dirty" with the following code. Thanks for your support!

function ff_Radio_NameRadio_action(element, action)
{
    switch (action) {
        case 'click':
JQuery(".formError").remove();
            break;
        default:;
    } // switch
} // ff_Radio_NameRadio_action

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

Moderators: ForumSupport
Time to create page: 0.048 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!