Form Help

TOPIC:

condition validation error and pageentry 1 year 11 months ago #257744

  • Topic Author
  • le5
  • Offline
  • New Member
  • New Member
  • Registered
  • 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 1 year 11 months ago #257746

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
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 1 year 11 months ago #257759

  • Topic Author
  • le5
  • Offline
  • New Member
  • New Member
  • Registered
  • 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 1 year 11 months ago #257762

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
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.048 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

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

Subscribe to news and updates!

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!