BF : Test for limit > Date 1 year 3 months ago #238224

  • Topic Author
  • Gilles361
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 248
  • Thanks: 6

I've created a new hidden element, which processes Date & Records TEST :

function ff_LimitesTest_init() {
var Date1 = new Date(); // Date actuelle
var Date2 = ff_getElementByName("Date2").value; // Date limite
var Nb1 = ff_getElementByName("Nb1").value; // Nb1 = inscrits Records Nb
var Nb2 = ff_getElementByName("Nb2").value; // Nb2 = limite d'inscriptions

// Test limit of Date
if (Date.parse(Date2) < Date.parse(Date1)) {
ff_switchpage(2); // Over date go to Form closed
// Test inscrits : Nb1 (inscrits) < Nb2 (Limite)
else if (Nb1 < Nb2) {
ff_switchpage(3); // début formulaire
} else {
// Nb1 > Limite Nb2 : Va sur le message de formulaire fermé (P2)
} // function ff_LimitesTest_init

It works ok!
Thks, Gil

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

BF : Test for limit > Date 1 year 3 months ago #238236

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 415

I'm glad that this solution is working and that the form now switched to page 2 only when needed.

Best regards,


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

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










Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

Questions et réponses sur les forums de l'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 with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!