A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
1answer
11 views

Make fields required on hidden Contact Form 7 fields

I'm using some form fields to gather contact information and then populating CF7 hidden fields with javascript. It all works great, however the user is able to send the forms without filling out ...
0
votes
1answer
31 views

Can i add password field into my wp registration form?

I would like to users can choose their own password on registration form and disable sending generated password email to them. Here it is my custom registration code: <form id="register-form" ...
0
votes
0answers
16 views

Form to Post submit and format? [closed]

I have website that has every page with the same formating: Title Introduction ~ 200 words 3 Product images with links below Another ~500 words block YouTube embedded video 10 links All that ...
-1
votes
0answers
7 views

Download pdf after submitting the form on product page

There should be a pop-up form that has to be displayed on the single product pages with the click of a button "Download PDF" and that button should be placed right beside the "Add to Cart" button. ...
0
votes
0answers
21 views

Creating a custom form with ability to query and submit to SQL

I need to create a rather unique customer invoice/purchase form and I have been searching google with different questions for a week without finding an answer, hopefully someone here can point me in ...
0
votes
2answers
17 views

How can I insert wordpress login screen on a different domain?

I do have a php website running on a certain domain, and I have installed Wordpress on a subdomain. I need to put a login form on the homepage (not the subdomain) where the user will fill in the ...
0
votes
0answers
7 views

Cannot prefill hidden Ninja Forms fields

If have a page where you can select a specific broker from a list. The broker name has to be filled in into the hidden field in Ninja Forms. if(jQuery('#broker-list').length) { //checks if the list ...
0
votes
2answers
37 views

Why is my form going to frontend on html form submission present on the php files inside my custom plugin?

I'm creating my first Wordpress plugin. It's goal is to update information from admin user about the book stock using sku only. There are 2 forms in update-stock.php page. First form takes sku input ...
0
votes
0answers
18 views

Sendng a cc email to selected item of 2nd selection field of my Elementor form

I have an Elementor form running on my webpage at http://cambridgeforlife.org/junkme that has a two-level selection field inside my Elementor form. What I intend the form to do is to enable the ...
0
votes
0answers
12 views

Move form validation error messages to top of page

When a user registers on our site (using Ultimate Member plugin, but I think it's a generic issue) and the form doesn't validate, it reloads the page with an error message right down the bottom, where ...
0
votes
2answers
48 views

custom form submission

I'm a bit new to custom wordpress pages and I purchased a HTML theme that I successfully converted into a Wordpress site. The thing is, that there is a contact form that I would like to use and I've ...
0
votes
1answer
19 views

How to submit form in a PHP file in WordPress?

I have a simple form in my WordPress footer.php: <form class="form-inline" role="form" method="post" name="contact" action="sub.php"> <div class="form-group"> ...
0
votes
0answers
17 views

Store user form submitted information in post type

I'm building an internal peoples directory using wp for a client. I'm styling the search form and the search result page that are working fine. I need some help to understand what's the better ...
0
votes
0answers
14 views

Is there a way to pre-populate an ACF Form with existing data when creating user meta data on the front end? [closed]

I have a field group that I created, which I am using to create a form on the front end of my site so a user can update meta data tied to their own profile. I am using this function to print the form,...
0
votes
1answer
20 views

Implement jQuery Smart wizard

I want to implement jQuery Smart Wizard to create a form that will let the user input some information. It usually need that all the html is inserted on one page, but I don't know if this is the best ...
0
votes
1answer
15 views

Timezone dropdown in form

I am using WP forms and want to have a dropdown menu where users can select their timezone. I found a list that I could hardcode into the dropdown but I read somewhere that this would be a bad idea ...
0
votes
1answer
19 views

Save and retrive data from a custom form to database

I want to build a webapp using wordpress to manage the fornt-end templating and data input. the app will display a wizard, a map to locate the user and a for to insert some information about the ...
0
votes
1answer
13 views

Wordpress search with more input fields?

I have this example of working search: <form action="<?php echo esc_url(site_url('/')) ; ?>" method="get"> <input type="search" name"s"> <input type="submit" value="search"&...
0
votes
0answers
11 views

Adding a Pods form for submitting posts

I have a website with a basic Pods form (currently this looks like: [pods name="thepodname" form="1" fields="theurl" label="Post" thank_you="/thanks"]) that I want to work into a custom form I'm ...
0
votes
0answers
12 views

How to link Pop-up to a button in WordPress?

I've created a pop-up contact form in WordPress using Popup Maker plugin. I want this popup to be opened up when my booking form button is submitted. I want to add the shortcode of my pop-up to the ...
0
votes
0answers
25 views

Send a JSON Data from a Form in WP to external API

I made a form in WP but I need to send all the data from the form to an external API in JSON Data, but I don't know how to do that, I just need suggestion on how to do that.
0
votes
0answers
35 views

Form to add data to custom post type

I would love some help with what I have going on right now. I am new to PHP, and WordPress plugin development. I have built a very simple WordPress Plugin (following a tutorial) that takes a form on ...
1
vote
0answers
12 views

How do I use the info submitted in a form to create a form reception page? (like “thank you {firstName}”) [closed]

I'm using Elementor, and when I make a form, I have an "Actions After Submit" section. I'd like to be able to send the form data to another page, and then on that page, make an Elementor template to ...
1
vote
0answers
18 views

auto populate list of questions if user select a category xyz

I have a custom post type job with a category of different type. each type of job has it's own list of questions that I want user to answer. is there a plugin that i can use to achieve something like ...
1
vote
0answers
14 views

Form link throwing website to main language

So this theme (Listeo) I'm using it's not natively multilang, so support doesn't help on this and I had to make some customization in the code. Every time I'm on the second language (English), and I ...
1
vote
0answers
15 views

Wordpress WPforms customization

Firstly I would like to apologize because my question may be a little bit nooby. For the educational purposes I am building app to keep several different records in DB and then make custom query from ...
1
vote
0answers
19 views

Sending data with multi step form to wp database

I have a multi step form and I need to save data from each step to the db. First step is contact details and by clicking button "Next" data should be saved to db. In my form template I have js code ...
1
vote
0answers
27 views

Wordpress form to shortcode

I've been struggling with this for ages. I need to generate a form with some text fields and drop down options and then transfer that data to display a shortcode. Like below [adds_weather apts='KSMF' ...
0
votes
1answer
22 views

Attend event form with ajax

I've created a Wordpress website with gigs from a band. All the logged in users can select if they've attended that specific gig. Something like setlist.fm. So I've created a new table ...
0
votes
0answers
15 views

how to update checkbox fields programatically in Drupal 8?

I created 4 checkbox under paragraph fields. I am updating these fields programatically. For example I have 1. a 2. b 3. c 4. d First time a,b and c are check. Once I am updating that time I ...
0
votes
0answers
16 views

Create a feedback page

I have a floating button in my WordPress website that will popup a modal with a feedback form. If the submit button was is pressed, the feedback will be posted to a certain page (e.g. Feedback page). ...
0
votes
0answers
36 views

Use admin_notices Action hook

I am learning plugin development. I am submitting a Form in admin-post.php from Admin Panel. I would like to show a Admin Notice while a Form field is empty. My admin-post.php file is like below. <...
0
votes
0answers
18 views

Change user_nickname for author page link

I have a page where user can change their personal info. Now I want to give them a possibility to change their personal page link by changing theire user nickname. So I want to create simple form with ...
0
votes
0answers
17 views

Form submission in WordPress Admin Panel

I am new in WordPress. I am learning WordPress plugin development. I have a Form in Admin panel like below. <div id="ajax-response"></div> <form method="post" name="newAddress" id=...
0
votes
0answers
14 views

Creating a page/template by inputting content into a form

I would like to create a page in Wordpress by inputting the content into a form field. Here is an image of what I am talking about: Instead of me having to create the page manually and formatting it, ...
1
vote
1answer
63 views

Form validation in WordPress Admin Panel

I am developing a WordPress plugin. In this regard I am gathering data from User using a Form via Wordpress Admin Panel. My code is like below <form method="post" name="newAddress" id="newAddress" ...
0
votes
0answers
43 views

Contact Form 7 plugin. prevent duplicate drop down submissions

I am using Contact Form 7 and would like to create a dropdown menu to choose a time option for event signup. I can only have 1 signup per time option. How would I limit the ability to submit multiple ...
0
votes
0answers
30 views

Insert variables into wpdb in custom post template

I'm rewriting this to try to make it easier. I am inserting into a database table information which is sent when I click on a button in the page. When I insert the data it works, unless I try to ...
1
vote
2answers
30 views

get_terms <select> <option> adds slaces to the resualt

If I run this code I get the desired result <?php $terms = get_terms( 'call-type' ); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ foreach ( $terms as $term ) { echo '\''...
0
votes
0answers
18 views

whether a nonce is required for get type and get_query_var?

I have a front form that allows filtering. I think I need a nonce but I am not sure to use it or not. I use the get_query_var method to modify the main query. It uses a get method. whether a nonce is ...
0
votes
0answers
14 views

Using a PHP form, get the page title or any other element in the sent e-mail

I am using a PHP form which I add in a page as a shortcode. I would like the user that receives the e-mail to also receive some indicator of the page the form was in...Is it possible to somehow get ...
0
votes
1answer
71 views

Form element name - array type is not working

I have a form with multi-select field: <select <?php echo esc_attr($item['pgggo_grid_sort_and_filter_multiselect']); ?> name="pgggo-taxon-select[]" class="ui fluid dropdown"> a foreach ...
0
votes
0answers
10 views

Gravity forms selection list question

So i'm using this plugin called Gravity forms. It lets me create forms very easy. There is this selection list (see photo) It lets users select in this case how many apples they want,up to 3. But ...
0
votes
0answers
16 views

Create an Advanced Search form for courses

Hopefully, I can ask for some coding advice here! Basically, we have 8 websites - 1 main website and 7 minisites. I want to build a 'Course Search' form, which has a dropdown of questions e.g. 'What ...
2
votes
1answer
26 views

When is it useful to use wp_verify_nonce

I know that wp_verify_nonce() is used to make sure that the $_POST is coming from a safe place. I am developing a WordPress plugin which creates custom lists. In order to do that the web site owner ...
0
votes
0answers
43 views

submit button not working after ajax

I've modified the woocommerce calculate shipping calculator form in the functions of my child theme by adding an email address to it. Currently on clicking submit all fields are being stored to the WC ...
0
votes
0answers
16 views

Create a Resume custom post types and form using Buddyforms

I want to create a custom post type of a resume template that looks exactly like the attached image. I decided to go with Buddyforms, as it is going to be a frontend submission with a community ...
0
votes
0answers
11 views

Cleartext Authentication on WooCommerce

A PCI Compliance scan has warned that forms are using cleartext authentication. The site has SSL installed. I believe that the forms are from WooCommerce. We're not using any plugins that should be ...
0
votes
0answers
16 views

Mailchimp form not centered

I'm trying to add a mailchimp form to my site which uses WP Bakery. I put the short code for the form in the center text box as you can see in the screenshot. But the form is not centered in the front-...
0
votes
0answers
11 views

How to insert input field on post and validate in PHP using button?

I have the plugin PHP Everywhere activated in my Wordpress installation. I've figured out how to get PHP scripts running on page load (viewing a post) using a Gutenberg Block but now I'd like to run ...