Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1138141

    I am using the Enfold contact form code to manage a customer record update page.
    I have isolated it to when the form class has “avia_ajax_form”, the form validation works, but when I submit, it stays on the form page with the form hidden. I want it to go back to the customer profile display page.
    When I remove “avia_ajax_form”, it does go to the display page set in the “action” value, but validation does not happen.
    Any help?
    Adam

    #1138465

    Hi Adam,

    Sorry for the problem. Could you post a link to where we can see the form in question please?

    Best regards,
    Rikard

    #1138831

    Currently it is only on my development server.
    I can try to get it up onto a publicly accessible URL later this week.
    Adam

    #1139684

    Hi,

    Thank you we will wait.

    Best regards,
    Basilis

    #1140241

    Hi Basilis,
    Here is form with dummy data
    https://beta.chmse.com/test-customer-update-page/ and click edit.
    So, again, the form submits, records the change in the first name field, but does not redirect back to the main profile page.
    Form action is <?php echo $url; ?>/test-customer-update-page/
    Adam

    #1141243

    Hi,

    Thank you for the update.

    You can set the contact form to redirect to a different page after the form submission, instead of displaying a message in the same page. Edit the contact form element and set the “What should happen once the form gets sent?” dropdown to the second option (Redirect to another page). Is that what you need?

    Best regards,
    Ismael

    #1142898

    Dont want to hijack this topic but may be there is a general Problem with the form? We have a blank enfold Install and up to date. Forms do send but the success message is empty. Set up is all fine…

    #1142999

    I think this is same issue. If your look at source code of success page you will see the form display setting as hidden. My form updates a record which does happen.

    #1143001

    Thank you Ismael. Sorry for delay in getting back to this. I am using the form framework in a new template file. I am not using the advance editor to configure the form. And the form submits to itself with different blocks displaying based on form values. If form submit value formname=”update” then it runs mysql query and then displays contact record default page. Now it updates but does not do anything else.
    What can I put into code to get to do this.
    Adam

    #1143226

    Hi,

    Thank you for the update.

    I am using the form framework in a new template file.

    What do you mean by that exactly? Can you give us a screenshot? Please use imgur or dropbox.


    @Gabster
    : Please create another thread and post the necessary details in the private field. We’ll check it there.

    Best regards,
    Ismael

    #1143479

    Thanks for hanging in there with me Ismael.
    I figured it out by looking at the sample contact form using the template’s frame advanced editor.
    Previous I had copied the HTML code from a form in the demo including all the css variables over into a new template page.
    I found that add the variable “data-avia-redirect=[success-page]” to the form element allowed me to redirect the page to where I wanted.
    Hope this helps others use the form styling of the theme in custom template pages.

    All best,

    Adam

    #1143677

    Hi Adam,

    Great, I’m glad that you found the problem and thanks for sharing here on the forum. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.