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

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.

0
votes
0answers
39 views

How to pass data to shortcode via form

I have custom post type called "forms" and has a sub-menu page which has form, to add a name add_action('admin_menu', 'form_builder_add'); function form_builder_add() { //create new top-level ...
0
votes
1answer
21 views

Wordpress upload_mimes not working for front-end uploads of 3D files

So, after the new WP updates my form will not allow certain files to upload. I have a Gravity form with an upload field to submit 3D print files. I can get one type of file to work, but not the others....
0
votes
0answers
9 views

How to insert automatically-generated WooCommerce coupon code in the body message of Contact Form 7 [closed]

I'm trying to implement the function like the below. Checking the email address that a user input in the Contact Form 7 whether to know that is already in the my email list. If the above email ...
0
votes
0answers
23 views

Issue developing an AJAX form with Wordpress

I am trying to develop a custom form working with AJAX. But there is no way to work because everytime it gives me the below message: "POST http://wellness4yourself-com.stackstaging.com/wp-admin/...
0
votes
1answer
18 views

How to create front-end (editable) Wordpress user profile pages?

So I am using Gravity Forms to create registration and login forms. But after the user logs in, I want them to be able to see a custom front-end profile page instead of the default Wordpress user ...
0
votes
0answers
21 views

Updating the database after parsing CSV document

Im trying to update the database based in a CSV document, if the first value in the CVS row is equal or greater than 300, it should update the database, and so on....but I cant get it to work, the ...
1
vote
1answer
24 views

recaptcha working on local but not on live wordpress sites [closed]

Hi I have a form I've made that works on my local machine but doesn't run the get_file_contents on the live server as it returns NULL on the response? Form: <form name="contactUS" action="<?...
0
votes
1answer
29 views

Why should we use the name attribute with the value “s” in the creation of the search form?

I was doing a search form when I realized that if I change the value of the name attribute to something other than "s", the search.php page will not be displayed. How can I change and still display ...
0
votes
2answers
19 views

How to send custom mail when a user complete a specific form

I've been looking for the whole day for a plugin that help me to solve my problem with my website. Is there a way to create a specific form that could send a custom e-mail when the user complete it? ...
0
votes
1answer
26 views

Button click counter for login user

I am new with wordpress and trying to create button counter also saving click into database. This form is only for wordpress login users. Function.php function getcount($userID){ $...
0
votes
0answers
9 views

Put form's fields on different places on a web?

I want to put WP form fields on different places on a web page and there is only a submit button for whole page. My idea is to render form as I want to design it better instead of using default style ...
0
votes
0answers
33 views

Contact form 7: Dropdown with options with additional input elements(text)?

I have a problem and don't know how to do it. Probably with JS. I am using Contact form 7 plugin in my wordpress page. I need to do a dropdown(right), placeholder text (right). So UX needs to be ...
0
votes
1answer
15 views

Trigger action when submitting form with WPForms [closed]

A customer of mine uses the WPForms plugin to create a front-end form. When the form is submitted the entry goes in de database (in a separate table wp_wpform_entries or something like that, all ...
1
vote
0answers
16 views

Send billing info from woocommerce checkout page to paypal checkout form

I have a theme using Woocommerce and PayPal Checkout. The checkout page in my theme has a form to input Billing Address info. My only method of payment is via PayPal Checkout. If a user starts the ...
0
votes
1answer
18 views

Unable to delete option

I am able to delete the option with form action admin-post.php but it gives me a blank page after clicking the button <form action="<?php echo admin_url('admin-post.php'); ?>" method="post"&...
0
votes
1answer
19 views

Contact form 7 show buuton on submit

Hi i would appreciate any help, I have set a contact form up and want it to show a button to download a file on submit. this is showing all the time and wont hide until the form is filled in. I have ...
1
vote
1answer
23 views

How to validate recaptcha on comments form?

I've added the following code to my function file to add the recaptcha, however I do not know how I can validate the captcha. /** * Add Captcha to Comments Form */ add_filter('comment_form', ...
0
votes
0answers
12 views

Wordpress - Complex Forms

We have a very complex form on our website which is being generated using Formidable Forms (Pro version). It has a lot of conditional logic being used, and is very heavy in scripting as well as ...
0
votes
0answers
19 views

How do I set my own field names within a WordPress form?

I've migrated my website to WordPress a while ago and it's been going really well. I'm planning to migrate my CRM from an ugly Odoo/Zoho combination (don't ask) to Salesforce and Salesforce makes it ...
2
votes
1answer
57 views

How to call WordPress functions from a form processing script

I'm working on a plugin which submits data via a form from a custom admin page. This is a simplified version of my form: <form action="<?php echo plugin_dir_path(); ?>/process.php" method="...
0
votes
3answers
119 views

Issue with contact form 7

A client of mine has installed contact form 7 for their contact forms but they're getting an error in the From field "(configuration error) Invalid mailbox syntax is used." The form looks like this: ...
0
votes
1answer
33 views

limit amount of photos uploaded per cpt post

On my site I have a front end form for users to create a post and upload images. It works fine however I cant seem to figure out how to limit the number of images per post. The image attachments get ...
1
vote
1answer
151 views

Customize reset password form redirect problem

I would like to create my own reset password form and page, I mean this page: I have already created a page template for the reset password form, the code: <?php /* * Template Name: Page - Reset ...
1
vote
1answer
66 views

How to handle a custom form in wordpress to submit to another page?

I know in PHP I can just put action equal to random.php file and process the data there, but how in wordpress can I use already existing page with a custom template to submit a form to, so that after ...
0
votes
0answers
9 views

WPNewsman Lite: required fields not working as expected

I have created a newsletter subscription form using WPNewsman Lite plugin. There are 2 fields Email and I agree... checkbox. They are both marked as required but users can click the submit button or ...
0
votes
1answer
31 views

Changing input type from text to multi select dropdown - skill taxonomy

Really need help with a wordpress code please. I have a field on a form which adds tags to the post. Problem is, its free for anyone to enter anything. This keep populating the "skill" taxonomy. The ...
0
votes
2answers
63 views

How to submit custom form data using ajax to HubSpot form?

I am new in WordPress. I have created a custom form in WordPress. When clicking on the submit button I want to submit form data using ajax to HubSpot. Please, anyone, help me how to complete this ...
1
vote
1answer
43 views

CRUD front end for mySQL in Wordpress

I hope I've come to the right place. I want to enrich my Wordpress site with a front end to MySQL database, which I host on the same server as my WP site. I have actually migrated my (former) MS ...
-1
votes
0answers
28 views

global variable in form

I just created a WordPress plugin with a custom form In my plugin (myplugin.php): function form_search() { if (isset($_POST['send-search']) && isset($_POST['search-verif'])) { if (...
0
votes
0answers
12 views

Page form submit fail

I have created custom form with bootstrap in wordpress page and it does not validate nor send email, no any effect after i press submit button. Before i created same form with same php validation ...
0
votes
3answers
254 views

Ajax call to php function doesn't work PHP code

I have a form like this: <form method="post" action="" id="BookingForm"> <label for="email">Email</label> <input type="text" name="email" id="emailId" value="" /> &...
0
votes
0answers
27 views

Building a logged-in user form that interacts with database

I am building a data-entry form for a wordpress website, strictly for logged-in users with editing capabilities. Conceptually, the user selects a database table from a list. The website generates a ...
1
vote
0answers
14 views

php form create 2 posts

somebody tried to create a plugin to display a form on the front, wich can add post . To fill it, user must create an account or login. When he create his account, he have to fill 2 field only for the ...
0
votes
0answers
19 views

how do i add a subscription form to all my blog posts using the landing.php Template in oceamWp?

I am using a sendinblue plugin for my subscription forms. I have a short_code and I want it on top of all my Blog posts. I tried to add it to the landing.php page like bellow <div id="content" ...
0
votes
0answers
27 views

wp_signon works localhost but not wokrs https site

I made my own login form with using wp_signon but i have a problem. It logins perfect in my localhost but not works on my real https web site. Here is my code. $args = array(); $args[ 'user_login' ]...
0
votes
1answer
89 views

How to change form action of wp-login page with a function

I'm manually creating my own Wordpress login form. The action parameter of all the forms points to wp-login.php. I want to change it for all of them to custom url (/login). Any idea how to that? For ...
0
votes
0answers
34 views

Error handling for wpdb error - displaying an error message to the user

I want to display an error message to a user when a php POST form fails. The form lets a user create a new team on my site. If the team name is not unique, the query fails. I want to display a generic ...
0
votes
1answer
1k views

How to disable autocomplete for inputs in contact form 7?

I have below code for contact form 7. Usually I use autocomplete="off" for html input field. However not able to figure out how to do the same for contact form 7 <div class="row"> <div ...
2
votes
2answers
55 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
15 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 ...
1
vote
2answers
287 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
13 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
174 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
20 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
17 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
19 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
10 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
2answers
24 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
18 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 ...