Form Help

TOPIC:

condition validation error and pageentry 2 weeks 5 days ago #257744

  • Topic Author
  • le5
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 9
  • Thanks: 0
hello

I got some complex scripts for elements on pageentry.
The form is a onepage ajax form.
When validation errors occur, I noticed that pageentry will be reinitialized.

Is there any possibility to check in the pageentry condition, if validation errors occured?
So I could alter the pageentry script with

if(validationerror == true) { // do some simple stuff since data is loaded } else { //do complicated init script and ajax loading }

any idea?

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

condition validation error and pageentry 2 weeks 5 days ago #257746

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 5361
  • Karma: 3
  • Thanks: 383
Hi,

for this you need to have a validation call in the code.

E.g. for code in init script->check page entry:
function ff_nameofelement_init(element, condition)
{
    switch (condition) {
        case 'pageentry':
           ff_valuenotempty_validation(element, message);
            break;
        default:;
    } // switch
} // ff_nameofelement_init

Hope this helps

Please replace nameofelement with name of your element (not title), and ff_valuenotempty with your wantend validation (for this validation should be createad in Manage Scripts).

Regards,
Tihana

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

condition validation error and pageentry 2 weeks 5 days ago #257759

  • Topic Author
  • le5
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 9
  • Thanks: 0
Thanks for your quick response.

Noticed, I just had to change my init script from pageentry to formentry.
Looks like then the init script is only executed ones, while pageentry by form validation errors again will be executed .

Hope I got this right.

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

condition validation error and pageentry 2 weeks 5 days ago #257762

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 5361
  • Karma: 3
  • Thanks: 383
Hi,

I think so! :)

If you need anything else, feel free to ask

Regards,
Tihana

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.047 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!