Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
2answers
15 views

Change register form action url

I have 2 registration forms, default one on /wp-login.php?action=register for "recruiter" users, other one on /wp-login.php?action=register&type=candidat for "candidates" users My problem is that ...
0
votes
1answer
12 views

How can I change my search form to bring up product results, not blog results

I'm currently building a wordpress/woocommerce site using a template, and am having issues with the search form & results. When using the search bar, results come up with the title 'blog', and ...
0
votes
0answers
8 views

wow i can nest a caldera forms magic tag shortcode with another plugin?

I have a caldera forms form plugin, this plugin support a functionality called magic tag.Magic tags working as a shortcode, replacing the value according the slug of field. For example:form field with ...
-1
votes
0answers
23 views

Looking for a simple login form to add to a WordPress Page [on hold]

There are a ton of plugins that allow you to utilize the default WordPress login, multisite and all that. I am not looking for that. We simply want to add a login form to a new wordpress page. When ...
1
vote
2answers
36 views

Prevent page reload after ajax form submission

I'm trying to submit a form in wordpress with ajax. But after the first submision the page itself is called again. My Form <form class="et_pb_contact_form clearfix" method="post" action="" id="...
0
votes
0answers
7 views

Add two fields to woocommerce product frontend

I've been following this tutorial: https://www.kathyisawesome.com/add-a-custom-field-to-woocommerce-product/ on how to add a custom field to the front end, that saves to the order and is stored in a ...
0
votes
0answers
20 views

How can I prevent real spam form submissions? [closed]

On my current website I'm using a captcha and a honeypot to prevent spam form submissions from bots, but I'm still receiving about five spammy form submissions everyday. My thoughts are that these are ...
0
votes
0answers
13 views

WooCommerce - updating address fields in registration form

I've added some WooCommerce checkout form fields to the registration form, since my site requires customer to provide their billing address during registration. // Custom function to display the ...
0
votes
1answer
17 views

custom search query database in child theme

I am trying to display searched data from database in wordpress child theme. It does work on localhost but when I apply the code in wordpress only Warning: Invalid argument supplied for foreach() ...
0
votes
0answers
16 views

Adding a different domain to existing Wordpress site

I haven't really found a question covering this topic and I'm sure that's because I don't know exactly how to word it. The problem is the following: My boss has recently overtaken the Swiss branch of ...
0
votes
0answers
16 views

Show ajax form resuslts in page

I have this multi-steps form which should filter through user's choices and give back a list of posts, related to that choices. I'm trying to do that with ajax, but even if I get the response in ajax ...
-1
votes
1answer
21 views

Can't edit Contact Us form on front page

I can edit everything on the homepage except the Contact Us form. It is not a gravity form listed in our list of forms, and it is not a contact form 7 plug in. It is not a sidebar. I cannot get to it ...
0
votes
0answers
9 views

Wordpress Filters with conditions

I want to make an online shop with wordpress - woocommerce. How to create a search formular with following conditions: chose a car-make (audi, mercedes) chose a car-model(if audi selected show A1, ...
0
votes
1answer
16 views

.html form added to a page

I have an external html form that I would like to add to my wordpress developed site. The form links to other areas in the business like the cashiers, so when customers fill the form out, the ...
0
votes
0answers
16 views

Allowing upload of files without an extension based on MIME type

I am trying to allow the upload of files that match a specific mime type, regardless of what the extension is (and even if there is no extension at all.) Currently, wordpress is blocking these ...
0
votes
0answers
7 views

Proper way of creating custom admin form page without WP taxonomies

I'm migrating an app from another CMS to WP. As it already has a lot of data (complex db structure), I'll be using custom SQL queries and just use the existing SQL table structure. If I understand it ...
0
votes
0answers
14 views

How to save data input by client while filling out the form?

I have a small website with 2 different contact forms. One form, created using Caldera forms (drag-and-drop) is quite long, about 10 pages (can't make shorter), and i was curious if there is a way to ...
1
vote
0answers
41 views

Create form on plugin options page that creates submenu pages for that plugin

I've created a plugin that adds an admin menu section that is visible to clients (Client Section) when they login and another that is only available to our staff (Staff Section). Our staff needs to ...
2
votes
0answers
64 views

Linking three taxonomies with ACF

I'm creating a product finder using a CPT called "Products", which is already used for displaying products separately on the site. The product finder is based on a answer and question idea, where the ...
-1
votes
1answer
29 views

Send foreach $_post method to contact form 7 [closed]

I have a list of products generated by Javascript, I need to send them by the POST method via “contact form 7” If the list had 10 items, it would not be too heavy write 10 lines of code with "Contact ...
0
votes
0answers
11 views

I want to create multi-page products that can be choosed with radio button. Then user clicks next and the info is sent to me. How?

Basically I want to create a shop that has a progress bar. Each step has multiple products that the user can choose. Then after clicking next the user is sent to the next step of products. All that ...
1
vote
3answers
36 views

How to submit data from HTML form?

I built a custom HTML price calculator with a form that when gets submitted calls a PHP file through the action attribute and this PHP file then sends the collected data to my company's email and ...
0
votes
1answer
54 views

Output multi-steps form results in same page

I'm trying to make a multi-step forms with radio buttons, which will be used to filter some custom posts. Here you can see an example. Right now, once the user complete and submit the form, the page ...
0
votes
1answer
49 views

Auto Submit Contact Form 7

I’m looking for solution whole day but can’t find anything that work. So I want to automaticaly submit CF7 on page load. If I use any jQuery or JS solution there is some endless looping on the site. ...
0
votes
0answers
18 views

Form validation and error message display

I have a custom HTML form on a page. I'd like to do some server-side validation. If the validation is successful, I'll process the request and wp_redirect to another page. If the validation fails, I ...
0
votes
1answer
23 views

textarea field is getting escaped for some unknown reason

It doesn't happen outside of WordPress, so I'm posting here. I'm using a textarea field in a custom form, and before I have a chance to do anything with it, I find it's escaped: echo $_POST['...
0
votes
0answers
42 views

Using PHPmailer to send to multiple recipients' email addresses contained in variables?

I'm trying to send a form submitted email to two recipients, both emails are contained in variables. I've tried the code below and it doesn't send out at all. I tested the variables with echo they ...
1
vote
1answer
36 views

How to query custom post types posts filtered by multiple custom taxonomies through a form selection

I'm trying to create a sort of selection menu, in order to select custom posts by different custom taxonomies. I did the selection part, but I can't get to output my post and I can't understand where ...
1
vote
0answers
15 views

How can I create registration form for users which I can assign role and profile picture?

I am using Ultimate member's forms for user registration. I found the way to assign a role to a user but I cant find the way to assing a profile picture to the user. The form not only doesnt ...
0
votes
1answer
27 views

Use admin-post to submit form data to external database

I am creating a custom form in WordPress to store and send data to an external database. As part of testing, I was successful in creating a form that submitted form data to the external database by ...
1
vote
1answer
150 views

Contact form 7 Dynamic text - placeholder on GET field

I am using Contact form 7, with the Dynamic Text plugin. This works really nicely... What I'm doing is setting it up so that if the user clicks on a link on a product, it redirects them to an ...
3
votes
0answers
30 views

Trying to save and display a wp_editor()

Like the title said, I want to save and display the content of a custom form, i'm using woocommerce and wp-crowdfunding. each time i create a "campaign" wp-crowdfunding create a product. That said, ...
0
votes
1answer
31 views

Radio&Checkbox buttons Contact form 7 not clickable

This is the code.In documentation [checkbox* your-country use_label_element "China" "India" "San Marino"] [radio your-sports label_first default:2 "Football" "Tennis" "Pole-vault"] But the radio ...
2
votes
0answers
17 views

Fix inefficient loop breaks post.php on form submit

As is, this loop works fine. Although I feel like its inefficient because it doesnt need to keep updating the nonce counter each time it loops, that only needs to be done once. So when I try and move ...
2
votes
1answer
31 views

Implement a multi-value input field where the number of entries is not limited

I am developing an application (plugin) where the user needs to enter any number of number of phrases in the settings page and these will be used by the plugin. I have implemented this to capture the ...
1
vote
0answers
11 views

Contributive page where people logged in can write

I'd like to have a page on my wordpress site where people can add a content really simply. They would click on a link that open a popup where they can login, add a content, and that's it. It would be ...
1
vote
1answer
42 views

Send a value to woocommerce with a button type submit

I'm using wp-crowdfunding extension, and i'm overriding a file called "fund-campaign-btn.php". what it does : display a field and a button, so you can type your price and click on the button to send ...
1
vote
0answers
30 views

Contact Form 7 Get Image Function [closed]

I am building our website and we are a business that sells dresses. I am looking to have an "Inquire" button for every dress that we have (we avoid posting prices). My dilemma is that a regular ...
1
vote
1answer
20 views

Cannot find an OLD Gravity Form on an OLD Word Press site [closed]

I am not a regular user of Word Press but I have recently been editing some Gravity Forms on our websites that feed data into Salesforce. On the Admin page, there is a tab for "Forms" with subtabs for ...
0
votes
0answers
21 views

Programmatically create new post from a metabox button

Given a classic course-lesson structure, created by custom post types, I want to add a new empty lesson for a course, by using a simple html form on a metabox, in the course edit screen. I think I ...
1
vote
1answer
28 views

How to prevent page from resubmit on refresh when “Cannot modify header information - headers” warning shows

I know that there are many possible duplicates but i keep receiving this error each time I'm currently working on a WordPress contact form, which is created as plugin. I need after submitting the ...
0
votes
0answers
8 views

Sending specific content to user after filling out a wordpress form

I need some help since I'm new to WordPress. I'd like to create a WordPress survey/form where I want to ask different YES/NO questions to my website members. Every YES/NO answer has a corresponding ...
0
votes
0answers
37 views

Fatal Error with WP Forms

I am trying to install my recently purchased WPForms Pro and when I try to Activate it, it gives me a fatal error. I am using a Managed Wordpress site from GoDaddy, so I don't have access to the wp-...
0
votes
1answer
66 views

Creating a WordPress addon for ContactForm7 submission (.XML file export)

I´m trying to create a plugin for WordPress to collect data from a website job-application form and generate a .XML file for each appliance ... I´m learning php. In this little code presented below, I´...
0
votes
0answers
20 views

Ajax show custom post data form & script

I have a wp site with persons details saved as custom post type officials. I want to create a form to get input and show the corresponding results of the person using ajax request. Like inputting ...
0
votes
0answers
20 views

A field in a form to relate to another object

I am total newbie in WordPress. I have a developer background,but i am a bit lost on what I am trying to do using WordPress. So basically I need to create a form with some fields like date, type etc. ...
0
votes
1answer
24 views

Frontend form with multiple posts

I've been researching frontend post-editing/creating forms, but I can't seem to find anything about having multiple forms on the same page. Please excuse my shaky understanding of POST methods. Here ...
0
votes
2answers
18 views

How to validate my form

I am trying to build a plugin, in the plugin I want the admin to be able to send data to database and let the user view the data in the front end, but I am still having problems with sending data to ...
0
votes
1answer
18 views

Simple filter to change label name of Email Adress to something else

i searched the whole internet without finding an adequate answer: I simply want to change the label of the Email Adress from "Email-Adress:" to "Example" i think this can be done by a simple ...
0
votes
1answer
38 views

Complex List Field - Gravity Forms

So I am using this Complex List instruction from LINK and it works, but it is changing all my lists. I've tried a few things but am missing something... .gform_wrapper ul.gform_fields....