Tagged: forms
-
AuthorPosts
-
September 13, 2019 at 7:07 pm #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?
AdamSeptember 15, 2019 at 6:42 am #1138465Hi Adam,
Sorry for the problem. Could you post a link to where we can see the form in question please?
Best regards,
RikardSeptember 16, 2019 at 2:53 pm #1138831Currently it is only on my development server.
I can try to get it up onto a publicly accessible URL later this week.
AdamSeptember 18, 2019 at 8:35 pm #1139684Hi,
Thank you we will wait.
Best regards,
BasilisSeptember 20, 2019 at 4:15 pm #1140241Hi 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/
AdamSeptember 24, 2019 at 7:57 am #1141243Hi,
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,
IsmaelSeptember 27, 2019 at 7:18 pm #1142898Dont 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…
September 28, 2019 at 2:20 pm #1142999I 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.
September 28, 2019 at 2:28 pm #1143001Thank 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.
AdamSeptember 30, 2019 at 6:16 am #1143226Hi,
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,
IsmaelSeptember 30, 2019 at 7:33 pm #1143479Thanks 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
October 1, 2019 at 12:19 pm #1143677 -
AuthorPosts
- You must be logged in to reply to this topic.