• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

AJAX Form (auto-login) not working now

New Here ,
Jul 24, 2018 Jul 24, 2018

Copy link to clipboard

Copied

Web Form have First Name, Last Name and Email Address and assigned to a Secure Zone.

Code:

var custData = {

     'FullName': 'test fullname',

     'EmailAddress': 'test@mail.com'

}

$.ajax({

     type: 'POST',

     url: '/FormProcessv2.aspx?WebFormID=297960&OID={module_oid}&OTYPE={module_otype}&EID={module_eid}&CID={module_cid}&CC={module_urlcountrycode}&Referrer={module_siteurl,true,true}&SAR=False&SWE=False',

     data: custData,

     success: function(msg) {

          alert('User will be auto logged in once submitted')

     },

     error: function(msg) {

          alert('Error! Please try again.');

          return false;

     }

});

Before it was all working, after the ajax submission and got success response it will return 1 for {module_isloggedin} (even after page refresh).

Also on the back-end section it says on the Customer Case that the customer submitted to the web form.

Now its not working, after the ajax submission got success response it still return 0 for {module_isloggedin} (even after page refresh).

Its kind of weird that the form will auto-login after submission as it don't have username and password BUT this kind of process is working before and is used on a Live Site.

Can BC support look at this issue as it affect the Live site functionality. Are there any changes in the system that affect the web form submission?

* There are no changes to the website code for a month and just this week we notice that this kind of function is not working anymore.

TOPICS
Developer

Views

860

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 24, 2018 Jul 24, 2018

Copy link to clipboard

Copied

What do you see in the admin dashboard - Do you see the user has logged in?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 24, 2018 Jul 24, 2018

Copy link to clipboard

Copied

Before it was working it always have a set of 2 notification under the admin dashboard.

1 for Customer submitted to the Web form

1 for Customer logged in to Secure Zone

Now None of them would appear everytime I submitted the ajax form

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 24, 2018 Jul 24, 2018

Copy link to clipboard

Copied

Hey Liam

Does your web forms working fine?

I just inserted a contact form in a test page with the standard code and I submitted it, it says "Thank you for your submission" but on the Admin section there are no Cases and no notification on the dashboard.

Login Form and Web App Input Form are working fine and it notify any submission on admin dashboard.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 24, 2018 Jul 24, 2018

Copy link to clipboard

Copied

Hi Liam,

https://forums.adobe.com/thread/2502935

So BC did an update for the web forms and it will require to have recaptchav2.

This could affect a lot of web form that don't have recaptchav2.

Is it possible to bypass the BC recaptchav2?

https://forums.adobe.com/thread/2502935

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 25, 2018 Jul 25, 2018

Copy link to clipboard

Copied

LATEST

You are misunderstanding the post.

If there is a large spam hit on forms on a site BC will put google recaptcha on the form in the backend to prevent that traffic hit. An email will go out advising about this so developers/site owner can take action adding the needed to to their webform.

Forms are working fine both custom and default for our clients, we have no reports. If you are finding forms are not submitting you need to check you have the correct form ID's and form field ID's vs the code in your HTML.

Often when I see this sort of thing people or their clients delete fields, make new ones, delete a field by mistake and remake it in the admin or delete a form and remake it. They do not realise these create new unique ID's for them and thus do not match with the forms in question.

Make a new form, put it as is on a test page - Does it work?

IF that does not even work I suggest you contact support, otherwise please ensure the ID references for everything are correct.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines