TOPIC:

Form Submission on Mobile 2 weeks 4 days ago #245671

  • Topic Author
  • krkirk
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 3
  • Thanks: 0
Hello,
I am having an issue with Submission on Mobile. Submission works perfectly on Desktop.

After reading some posts, I have disabled MaxiMenuCK for the page. Additionally, I have the Custom Initialization Script that loads on the page and am wondering if this could be the issue.

Thank you in advance.


function ff_Volunteer_Application_and_Waiver_init()
{
setInterval('calculateAge()',500);

} // ff_calc_age_init

function calculateAge(){
var one_year=1000*60*60*24*365;
var date1 = new Date();

var dob= ff_getElementByName('Date_of_Birth').value;
var tmp=ff_getElementByName('Date_of_Birth').value.split("/");
var date2=new Date(tmp[2],tmp[1]-1,tmp[0]);

var pattern = /[0-3][0-9]\/(0|1)[0-9]\/(19|20)[0-9]{2}/; //Regex to validate date format (dd/mm/yyyy)
if (pattern.test(dob)) {
var y1 = date1.getTime(); //getting current year
var y2 = date2.getTime(); //getting dob year
var diff=Math.floor((y1-y2)/one_year);

checkAge(ff_getElementByName('Age').value=diff);
}
}

function checkAge(age){
if(age >= 18){
bfToggleFields('off', 'element', 'Under_18', bfDeactivateField);
bfToggleFields('off', 'element', 'Under_17', bfDeactivateField);
bfToggleFields('off', 'element', 'Parent_Guardian_Signature', bfDeactivateField);
bfToggleFields('off', 'section', 'Parent_Guardian_Agreement', bfDeactivateField);
}
else if( age === 17){
bfToggleFields('on', 'element', 'Under_18', bfDeactivateField);
bfToggleFields('off', 'element', 'Under_17', bfDeactivateField);
bfToggleFields('on', 'element', 'Parent_Guardian_Signature', bfDeactivateField);
bfToggleFields('on', 'section', 'Parent_Guardian_Agreement', bfDeactivateField);
}
else if (age >= 0 && age <= 16){
bfToggleFields('on', 'element', 'Under_18', bfDeactivateField);
bfToggleFields('on', 'element', 'Under_17', bfDeactivateField);
bfToggleFields('on', 'element', 'Parent_Guardian_Signature', bfDeactivateField);
bfToggleFields('on', 'section', 'Parent_Guardian_Agreement', bfDeactivateField);
}
} // ff_New_Volunteer_Application_and_Waiver_init

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

Form Submission on Mobile 2 weeks 4 days ago #245689

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9796
  • Karma: 167
  • Thanks: 785
Hi,

can I have a link to the form? There is maybe another js error preventing it from getting submitted.

Regards,
Markus

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

Form Submission on Mobile 2 weeks 4 days ago #245691

  • Topic Author
  • krkirk
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 3
  • Thanks: 0

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

Form Submission on Mobile 2 weeks 3 days ago #245731

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 9796
  • Karma: 167
  • Thanks: 785
Hi,

it is most likely this:

crosstec.org/en/forums/1-forums/127777-c....html?start=6#242259

You probably have keys entered for recaptcha v3 which work on desktop but not on mobile. You basically need to use actual recaptcha v2 keys according to him.

Regards,
Markus

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

Form Submission on Mobile 2 weeks 3 days ago #245746

  • Topic Author
  • krkirk
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 3
  • Thanks: 0
Yes, that seems to have solved the issue.

Thank you, Markus.

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

  • Page:
  • 1
Time to create page: 0.052 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

Summer Sale!

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!