Submit button when ckicked

By: Richard Mudd | Asked: 09/01/2022
ForumsCategory: How-toSubmit button when ckicked
Richard Mudd asked 2 years ago
I would like to be able to validate the form entries made by the user and also open a particular page when the user clicks on the submit button on a particular form.  

appreciate the help
1 Answers
Bobby Clapp answered 2 years ago
That's all built in really. What particularly do you expect to happen when they submit?
Richard Mudd replied 2 years ago

I need to do two things:
1: Validate the user's form entries and stop the submission warn the user if any of the entered values are invalid.

2: Query a table that contains the user's registration entries, and open different pages depending upon the results of the query.

Formidable allows you to open a specific page but, I don't know where to place the additional needed code, or how to specifically identify the submit button name if I have to write the code at the end of the theme file.

Please help me

Richard Mudd replied 2 years ago

All of the code snippets I've seen or articles I have read, begin with using code to create a new submit button. The button is named and then referenced. But with formidable forms, the button already exists and I don't know how to identify it. I am not asking anyone to write the code. I just need help to know how to identify the submit button and the page. I don't have a lot of code to write and plan to use either the wpcode plugin or just add the code to the bottom of the theme file

Bobby Clapp replied 2 years ago

Maybe this is what you need ->

Richard Mudd replied 2 years ago

I will look. Thank you

Richard Mudd replied 2 years ago

I've added the following code to the bottom of the theme file:

id == 25){
echo 'alert'("It Worked")';


I know it isn't right. Can someone please tell me what I am doing wrong?

Victor Font replied 2 years ago

What is this code supposed to do? It's not clear from the post.

You can edit the default submit button HTML on the form's Customize HTML Page. You can add any HTML elements or attributes you want you want to the submit button's HTML.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community