'Extract' registration response to display outside of registration form

Hey,

I am using the s2member registration form inside a dropdown. I am a little unhappy with this solution, as the user does not get to see the response after submitting the registration form, since the dropdown closes due to the page refresh called by submitting the form.

I was wondering if its possible to take that response part and put it above the registration form, ‘outside’ so to say.

Cheers

I was wondering if anyone has an idea about this?

Do you have the user choose the password during registration? If so, you could log them in automatically after they submit the registration form.

Hey,

yes I do let the user choose the password, and yes I do log them in automatically after registration. However sometimes the input from the user has mistakes such that the form throws an error, which can’t be seen unless opening the dropdown again. So either I have to put the forms reponse outside the dropdown, or I open the dropdown again when the page is refreshed.

In that case, your best option is to create a browser alert using javascript. Then the user would see a box, advising them that something has not been entered correctly. And that alert would be displayed as an overlay, so would not get obscured by the form.

But that’s what s2Member already does. So I’m wondering if you have added some custom coding.

No I do not get that javascript alert, only the response above the registration form. I did not add custom coding, except the auto login stuff in mu-plugins.

Then I’m wondering if you have a javascript problem. Try right-clicking on the page, choose Inspect Element, then Console, and re-load the page. Does the Console show any errors?