2022 Developer Survey is open! Take survey.

Questions tagged [forms]

HTML forms are used to pass data to a server. An HTML form can contain input elements like text fields, checkboxes, radio-buttons, submit buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label elements.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

"Your site doesn’t include support for the “cwp/block-gutenberg-forms” block." error [closed]

The Wordpress plugin "Gutenberg Form" and the forms I have created with it on my website have been working very well until today when they suddenly do not work anymore, and when I go to edit ...
user avatar
  • 1
0 votes
0 answers
30 views

Using Ajax to submit a form, and run a SQL Select query based on user input from the form

I'm creating a web form on my WordPress powered website. The form is intended to allow the user to enter a ZIP Code (aka postal code). When the user submits the form, the page should query a MySQL ...
user avatar
  • 1
0 votes
0 answers
17 views

Linking form to user meta fields

I currently have my login page set up to allow sign up through google. Immediately after a successful sign up I'm looking to set up a redirect to a form where the user can enter additional details and ...
user avatar
0 votes
0 answers
6 views

Mailing list submission from a post that doesn't have a form on it

I've received a mailing list submission from a blog post page on my WP site which doesn't currently show any forms. Any ideas how this could have happened? When I log in to the WP admin, go to Forms, ...
user avatar
  • 101
0 votes
0 answers
34 views

How to add custom regex validation to WPForms password field

I'm using WPForms Pro and I'd like to add custom requirements to the password field on a form. I know that the password field has a password strength requirement setting, but I have specific rules I'd ...
user avatar
0 votes
0 answers
16 views

Wordpress Forms Advance Conditional Logic

I started using Wordpress for more than a month now. I'm trying to look for forms with advance conditional logic. I came across Fluent Forms, Ninja Forms, WP Forms and the logics were just for show/...
user avatar
  • 101
0 votes
0 answers
16 views

Cascading dropdown select search based on Parent Page & Child Page

How would I create a cascading dropdown select search where the first dropdown would host selected Parent Pages and the second to display the Child Pages of the selected Parent. When submit button is ...
user avatar
  • 11
1 vote
1 answer
27 views

Send email button in custom post type backend

I've added a button in the backend of my custom post type editor. I want to send an email using wp_mail() when admin user click a button. I've added this custom form and button to a meta box. See ...
user avatar
1 vote
1 answer
20 views

WP plugins for building a database?

I am a beginner at WP, I need some ideas on how to proceed with the following problem: I need to create a tool that will build a database for a client's WordPress site. The database surrounds authors ...
user avatar
0 votes
0 answers
19 views

gravityform - retrieve multiple check answers "keys" instead of "values"

I need to implement a custom math sum relative to the answers of a multiple checkbox question. Let's suppose I have a question like this: Question: first choice second choice third choice If I "...
user avatar
0 votes
0 answers
22 views

get wpforms ID value from ACF text field

I have wpforms and ACF plugin installed. I used ACF text field (form_box) to be able to put WP forms shortcode to be displayed in the post. my objective is to be able to get the ID of each WP forms ...
user avatar
0 votes
2 answers
33 views

Uncaught ReferenceError: jQuery is not defined - although jQuery is loaded [closed]

I'm aware that this is a well discussed question, nevertheless I did not find any answer for my issue. I have the following code on a Wordpress page (inline, necessary for this project): <script>...
user avatar
0 votes
0 answers
39 views

Exporting a form to a CSV file does not work in WordPress but it does in PHP

I have a form with some fields that I need to implement in a WordPress template. If I do it in vanilla PHP it works but when I put it in a WordPress template it doesn't work, can it be a problem with $...
user avatar
  • 101
0 votes
0 answers
31 views

This code is supposed to only allow user to be authenticated if accountVerified is equal to 1, but it still allows user to be authenticated otherwise

global $user_id; global $wpdb; if(is_user_logged_in()){ header("Location:https://www.recovermenow.co.uk"); } if(!$user_id){ if($_POST){ $...
user avatar
0 votes
1 answer
27 views

Form will not popup, when clicking on the link to the form

I am creating a form that must popup, when a user clicks on a profile link. I have tried using javascript and various ways to do this, but I couldn't get the form to show. The page just jumps. I am ...
user avatar
0 votes
0 answers
6 views

User loggedin as Subscriber form not sending

I am making a plugin and added a form shortcode called it in post now trying to send that from admin working without login working logged in as editor working logged in as Subscriber form not sending,...
user avatar
0 votes
0 answers
11 views

Code for front end validation for forms not working

I cannot get my front end validation messages to work in my form. I don't know where I am going wrong in the code. Can somebody please advise me. First Name Last Name Email ...
user avatar
1 vote
0 answers
22 views

Can I use custom CSS and js plugin to put JavaScript in to validate my forms

I would like to put some front-end JavaScript validation to my forms, but was wondering, if I can put the JavaScript for the field validations in the custom CSS and js plugin, or do I need a specific ...
user avatar
0 votes
1 answer
17 views

What do I put in the form action attr on top of form wordpress

I created an html form, but have no clue, what I must put in the <form action = on top of the form. Does the user info go to the database, or to a file in wordpress. I am not sure what to put there....
user avatar
0 votes
0 answers
28 views

Form Post / Session Variables not Working in Query with Pagination

I am developing a custom search where the user inputs data on the first page with a form. Upon clicking submit, the user is brought to a second page for the results. I pass the data via pulling in the ...
user avatar
  • 125
0 votes
0 answers
21 views

Wordpress - send digital product with custom email

I have a question regarding my new online store. I am providing digital design services to my clients on my new website within Wordpress. I have connected packages trough WooCommerce. I saw that ...
user avatar
0 votes
0 answers
19 views

Email form getting hacked

I had a bit of a disturbing call from a potential client today. Apparently she filled in the form on the contact page, then a day or so later some other designers contacted her for the job, claiming ...
user avatar
0 votes
0 answers
39 views

How to redirect with success message in wordpress admin panel?

I have custom form which is in wordpress admin panel and handle the form action in functions.php file but i cant redirect with success message. i have tried the form action with the following hooks ...
user avatar
  • 11
0 votes
2 answers
81 views

Add link to php field text on wordpress form

I have bought a wordpress template but the developers say they cannot help me with what I need. The theme has a hotel reservation system integrated, and the form brings a field to “place” the user ...
user avatar
0 votes
2 answers
27 views

HTML Form Question

I am very new to HTML and PHP and have spent hours trying to find the right questions to ask. I would like to create a simple webform on a page and add a button that will generate text (on the same ...
user avatar
  • 1
0 votes
1 answer
51 views

How to let a user create a post by submitting a POST form?

So i have the following simple POST form in my home page: <form action="/wp-content/plugins/myplugin/my_create_post.php" method="POST"> <label for="title_given"...
user avatar
  • 39
0 votes
0 answers
10 views

Submit Multi-Part Form After Each Part

I have been searching for this for a couple days and just don't know if I am typing in the right thing. I am wondering if it is possible to submit a multipart form after each part and then connect the ...
user avatar
0 votes
0 answers
28 views

Should wordpress nonce be placed in html form or in javascript file

This example is specifically related to woocommerce but apparently the same question also applies to wordpress. Hence I believe this question is relevant to this forum. Here goes the example: I create ...
user avatar
  • 101
0 votes
1 answer
27 views

Add Server Side validation in Ajax mail form

I'm building a form that takes fields values and send them via wp_mail to the post author. It works, but I want to add a server side validation to improve security. I don't know where to add my ...
user avatar
0 votes
0 answers
27 views

WordPress File Upload Form Returning Null

I know this has been mentioned a few times but I'm running short of ideas, For some reason, my form won't upload any file regardless of size or type, I've checked my php.ini, my permissions everything ...
user avatar
  • 1
0 votes
0 answers
125 views

Wordpress Ajax form filter | Search by title with ajax form, breaks the other filters

I have implemented a form within my code that gives the user the possibility to filter the products according to his needs. The form was created in ajax, to increase the user experience level of the ...
user avatar
0 votes
0 answers
29 views

How to send automatic response after form submission without plugin

I create an ajax form and I well received the email. Now, I just want to do like CF7, send an automatic response to the sender to notify him that I well received the form. Which function used or which ...
user avatar
0 votes
0 answers
18 views

How to setup multi-page using jquery?

Getting the reference here, I want to change the radio field to advance the page in the Multi-Page and submit automatically form at the end . So I combined the two codes and added the extra code at ...
user avatar
0 votes
1 answer
71 views

Make e-Mail optional on Woocommerce sign up

My site uses mobile login ability and that is our primary means of communication and the brick and mortar utilised this so we need to make it optional for users to enter email as we have a local sms ...
user avatar
  • 111
0 votes
1 answer
33 views

jQuery will not work on page from snippet or file

I've been banging my head against the wall on this, My jQuery code runs perfect in CodePen, the WP site in console also runs it perfect, however I simply can not get it to run on the actual ...
user avatar
  • 111
1 vote
1 answer
50 views

WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?

Desired outcome I want display: none to be applied to the entire table after form submit button is clicked, because once I got the order number ( $order->get_id() ), in a second step I want to ...
user avatar
1 vote
2 answers
50 views

searchform.php override not working

I'm taking a Udemy class to learn how to make Wordpress plugins and themes. The video I'm on is having me override the default search widget with a custom one via searchform.php. From what I've ...
user avatar
0 votes
0 answers
12 views

How to create a form where you can select multiple recipients, based on a list of website users?

First of all, I'm not a professional developer but I do have basic programming knowledge and experience. I apologize in case someone pulls their hairs at my low knowledge about wordpress development. ...
user avatar
  • 1
0 votes
0 answers
14 views

login form should redirect to register page for in 1st login next time it should redirected to home page

I'm new to WP I need your help in redirect the user only for 1st time logging, in my landing page, 1 created a login form if the user logged for 1st time means it should redirect to register page and ...
user avatar
0 votes
1 answer
83 views

How to submit custom post type front end form when a user buy specific product

Hi there i want to achieve this functionality and i want ideas. I have one custom form in front end and a user can fill this form and upload a custom post type but i want this steps. User select a ...
user avatar
0 votes
0 answers
14 views

How to create multipage form and redirect to specific URL based on inpput?

I want to create multi page form, where first page will take information about user, second page will take information about product which he likes and third page user will subscribe either one time ...
user avatar
0 votes
1 answer
34 views

WordPress search input in database, to edit information via form and update the database

i would like to program a custom form to sift out the row that i am interested in by finding the machine's serial number to bring all the other information (eg. full name & email), so i can get ...
user avatar
1 vote
0 answers
82 views

How to store data from multiple forms using ajax and php

I have custom post loop, and for each product I have form. I'd like to store data in array for each click submit button in each product. E.x. Product A with Form and some values (price,quantity) click ...
user avatar
  • 13
0 votes
2 answers
2k views

Wordpress admin-ajax.php 400 bad request

I try tu run wp form with ajax but console return Wordpress admin-ajax.php 400 bad request. jQuery(function ($) { $(document).ready(function () { jQuery('#...
user avatar
  • 13
0 votes
0 answers
26 views

WordPress Custom Form - Getting Query Vars, Weird Glitch?

I want to start by saying thank you to the SE community for helping out over the years. I am trying to create a feature for our website that takes a customer zip code and updates the product inventory ...
user avatar
0 votes
0 answers
84 views

$_POST returning empty values

I have created a form, as shown below that displays according to a switch statement. I am needing the inputs from the form submission to either be saved to a table in the WordPress Database or to be ...
user avatar
0 votes
1 answer
694 views

How to send multipart form data to WordPress endpoint

I built custom React/Gatsby multipart form with file upload and I want to send all form data to WordPress endpoint, upload files to specific folder and display all of the data in the WordPress backend....
user avatar
0 votes
1 answer
25 views

No plugin populate user information in to form

I want to create my own form in order to get information on my site. For learning purposes, I do not want to use a plugin. So, please don't tell me to use one. I know they are easy to use, but I want ...
user avatar
  • 1
1 vote
0 answers
60 views

Using a custom plugin to capture input data via Ajax and PHP

I'm very new to WordPress, so please excuse my possible lack of understanding. I'm super comfortable with good old vanilla HTML/JS/CSS, and transitioning my hard coded site into WP. My old site had ...
user avatar
  • 111
0 votes
1 answer
26 views

Why does a <button> on Comment edit page submit the page?

I followed this guide to add a "copy to clipboard" button on the edit Comment page (comment.php?action=editcomment) It works but it also submits the page (i.e. the page reloads back to the ...
user avatar
  • 103

1
2 3 4 5
27