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
2answers
15 views

Custom PHP form needs refresh to load page correctly

I have a single page site with all content on it. The only other page I have is a "thanks for submitting the contact form" page. In this "thankssubmit.php" page I have my PHP form ...
0
votes
1answer
67 views

Use an HTML <select> Element To Filter Taxonomies In WP Search

I have a WP search form where I would like to add a <select> element for a particular taxonomy and its terms (salary bands) for a custom post type of 'jobs'. The current standard input search ...
1
vote
1answer
30 views

Using wp_editor tinyMCE in metabox cause form alert on leaving page

Using tinyMCE as wp_editor in a custom post type metabox create an alert when I try to submit or If I want to change location I don't have such behavior using Quicktags, but since TinyMCE is easier ...
0
votes
1answer
34 views

Form checkbox value going to dynamic URL

Well, I have a Database made mostly with 'Advanced Custom Fields' in a page on my site that is supposed to get all the STORES (custom post type) of a city and show them to me, and by changing ...
0
votes
1answer
7 views

WPForms Custom Redirect not working

I use WPForms in one product category where customers get redirected to cart after filling in the form. The WPForms redirection where you set the URL works perfectly, however, I need the URL to be ...
0
votes
1answer
22 views

Is There Any Built In WP Functionality For Combining Form Fields To Return Specific Data

I have a basic job board on a site (a custom WP theme) that uses the WP search form to search by keywords in the 'jobs' custom post type, and users can also click on job categories which I have listed ...
0
votes
0answers
18 views

Replicate WordPress Website Form With Payment Integration and File Upload

I am trying to replicate a form on this website: www.clippingmasters[dot]com/order-plaatsen/ The problem is that there are no existing plugins that can recreate the required functionality. The flow I'...
0
votes
0answers
5 views

WP_List_table with form of method=GET redirects to wrong url after submit

I am trying to implement a filter button on my wp_list_table, however I need the form where the table is called to be of method=GET so the query parameters for filtering retain their values for ...
0
votes
0answers
16 views

Build wp/wc forms from scratch

I am working on a theme but i cant find anywhere how to create my own forms from scratch. I am talking about all the different forms like comments, adding a product to the cart, etc... They all have ...
0
votes
0answers
25 views

error when using reCaptcha v2 in wordpress custom login form!

I have been successful to create a custom login form by ajax and reCaptcha v2. every thing is OK but when the user enter incorrect username or password and submit the form, then enter the correct ...
0
votes
0answers
37 views

Upload multiple files

I added this code but when I upload 1 image, then 4 images of 1 image are uploaded, what is happening IMAGES : Not proper working PDF file upload : work fine Doc file upload : work fine rvt file ...
1
vote
0answers
14 views

Display checked in checkbox theme admin page when reloaded

When check in checkbox, display checked. And when uncheck in checkbox, display unchecked. it is OK. But when reload this theme admin page, always unchecked. When save checked and then reload, but ...
1
vote
0answers
23 views

Filter the loop by categories using checkbox form

I feel I'm close in solving this issue but kinda hit a wall. I have a loop on the examlpe.com/blog site and I'd like to be able to filter it using the category checkboxes. Here is my loop <h3 class=...
1
vote
0answers
12 views

Adding custom field in all widgets, but at the top of the form, in admin area

I am creating a cute new functionality on my theme that requires to add a custom field to all widgets forms in the admin area. I managed to do so by using the in_widget_form hook: function thefunction(...
0
votes
0answers
13 views

using esc_html_e string in custom form using code snippets

I needed to create a custom form to implement a custom payment method (it is a donations form). I decided to use Code Snippets plugin and create the form in there. Every step is a snippet and every ...
0
votes
0answers
8 views

Add javascript to get the value of checkbox or select box

Thanks for reading my question. I am having a specific requirements where I am selling three tickets type using contact form 7. At the top the checkbox is presented to user where the user can select ...
0
votes
0answers
7 views

Customize the way a form is submitted

I have created a form using the plugin caldera form. There are many fields with conditional formatting. Every field entry is recieved on a new line, I would like it to come in columns and rows. does ...
0
votes
0answers
11 views

Adding custom field to an existing frontend form

I am struggling on this for few days already. Hope anyone can assist me, thanks a lot! The theme already has a frontend form, but I wanna add a custom field on it, which is a expiry date of the post. ...
1
vote
1answer
67 views

how to use reCaptcha v3 in wordpress custom login form?

I tried to create a custom login form and custom register form by ajax. I have been successful to make that and you can see my code below for custom login form. the issue is, I need to use reCaptcha ...
1
vote
0answers
13 views

Ajax loaded form replaces form action with Ajax url

I am making a Wordpress website using WPForms to use different forms. These WPForms are loaded in a modal using an Ajax trigger on a button click. When I click a button, the ID of the button is used ...
0
votes
0answers
9 views

Auto next upon clicking image without clicking Next button

Hello I wanted my form to be just like this: https://www.workjustice.com.au/ I'm currently using Wpforms plugin but I think I need costume code for that anyone know how to do this?
0
votes
0answers
13 views

I want to show a newly created PDF as a response to a form

I have the following steps: A Google Form embedded in WordPress triggers a lot of calculations in a Google Script. The Google Script produces a new PDF on my Google Drive, I want to show the PDF only ...
0
votes
0answers
9 views

How to attach images to the post ACF gallery form is submitted from

I have ACF and ACF Gallery Field plugin. I made a custom post type called "albums". In ACF, I made a gallery field called "album_images". Then in Elementor Pro, I made a template ...
0
votes
0answers
12 views

Add multiple select to wp list table query | how a request is made in edit.php

I've created a multiselct select box in the wp list table header. It works. But the url has the values passed as an array for example key%5B0%5D=value1&key%5B1%5D=value2 What I'd like to be able ...
1
vote
0answers
15 views

How to use TinyMCE in the quick edit form?

I'm trying to make the description of a post editable - specifically the description of a WooCommerce product, but the issue should apply to any post type. I managed to implement it with a simple ...
0
votes
0answers
13 views

contact form submitted once could be edited later in front end

I would like to know if its possible to have the contact form submitted once from the front end could be edited later by the customer again from the front end. Is it possible that we custom code the ...
1
vote
1answer
45 views

prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site

I have seen a number of methods dating back to about 2011 in order to take a form and have its data posted via ajax.jquery. I have tried a couple and am just getting the page to reload despite using ...
0
votes
0answers
13 views

WordPress prevent form resubmission

I'm working on the code below experimentally. Technically I created a custom page inside a form that changes the description of the site. Here I am processing data with REST API via form. Everything ...
0
votes
1answer
22 views

Form from within a page

Bit of a strange one here. I have a website setup using external json data to show football/soccer match details. An example is here https://www.husupporters.club/match-result/365972/ the numeric ID ...
1
vote
0answers
17 views

Excluding Specific Fields from Profile Builder Registration Form

I understand that in order to add extra fields to the default WordPress user, one must use a plugin such as Profile Builder. Such plugins also provide short-codes for linking signup and login forms ...
1
vote
1answer
13 views

How can I add a link to a WPForms “contact us” form to the main menu?

I created a basic WordPress site with a main page and a menu on it. WordPress allowed me to add links to pages. But I cannot find a way to add a link to a form created in WPForms. My goal is to have a ...
0
votes
2answers
82 views

What is the alternative code to if (isset ($_POST) && !empty ($_POST) to avoid warnings?

I am trying to insert some php code to my WordPress website but it gives security warnings perhaps due to directly accessing $_POST variable. Instead of $name = $_POST['name'];, I can use $name = ...
0
votes
1answer
18 views

Creating short code for search form

I added this snippet in my functions.php file but it doesn't execute the categories from foreach. It only shows the keywords field and it works fine but it's not showing the categories names. function ...
1
vote
1answer
30 views

How to add a dynamic dropdown derived from custom taxonomy

I have created a custom taxonomy state and city. I want to fetch all the city for a given state using a drop down list. suppose first i need to select a state and then drop down automatically ...
1
vote
1answer
11 views

Signup Form that adds customer to MailChimp, redirects to checkout, and fills in form data

You can see what I am trying to do on this test page - the top button labelled "MAILCHIMP + CHECKOUT" is what I'm working on. I am trying to accomplish 3 things (at the moment 2 & 3 are ...
0
votes
1answer
29 views

How to add “on change” to a text input in contact form7?

I am converting a static theme to a wp-theme and I am working on forms with wpcf7 plugin. I am wondering how can I write this code with wpcf7 text tag. <input type="text" name="name&...
0
votes
0answers
76 views

Radio Buttons on WPForm not working

I am redesigning and updating a WP website that has a form created with WPForms. This is a live site and this form (an application), as well as the website, cannot go down. It has to be live as much ...
0
votes
1answer
17 views

How to redirect a Link to a new tab in contact form 7?

I was trying to redirect my contact form 7 to specific pdf link. But I m not sure how to open it in new tab can someone help me up with the same ? Below is my code... add_action( 'wp_footer', '...
0
votes
1answer
35 views

Saving contact form 7 data into custom Table

I need save the Contact Form 7 data in a custom table because the Contact Form CFDB7 save me the information in the same colum. some one khow a plugin make this or maybe a php functions for this?
0
votes
1answer
23 views

How to make and save custom form in custom plugin page?

I am making a plugin with a setting page in it. In its setting page I need a user registration form with only two fields: username and password. How can I save this data to the database? Here is what ...
0
votes
1answer
12 views

How do I implement form handling when form is custom HTML?

I am new to WP and back-end in general. I want to make a site with multiple forms and I am curios how and where do I handle them ? One of those forms is a form inside footer in which the user is ...
0
votes
0answers
19 views

Not adding a new post?

I am trying to add a new post via the front form. This is how it looks: I insert the form in the right place via get_template_part, here is the form itself: <form class="consult__form-q&...
0
votes
0answers
19 views

Wordpress nonce failed sometime

I have generated the nonce key in the HTML form using the following function - wp_nonce_field('test_form_action', 'test_form_field'); and posted all the form data along with nonce value to server side ...
0
votes
0answers
14 views

How to make search work with front-page.php?

In the file header.php I have a search form that sends me to URLs like localhost/?q=... but, since I have a front-page.php file, it does not work although in the WP theme I have a file called search....
0
votes
1answer
17 views

How to show cities according to the state in Form using Javascript? [closed]

I am working on the Contact Form 7 and I want to show the cities according to state in contact form 7. I have also used the plugin but it is not working according to the condition and I don't want the ...
0
votes
0answers
18 views

Adding Search & Filter to custom WP_Query?

I'm using Search & Filter Pro, and want to add it to my currently setup WP_Query: if( get_sub_field('type_of_post') == 'age' ) { $post_type = 'courses'; $taxonomy = 'ages'; $term = ...
0
votes
0answers
16 views

How to set email input with logged user's email address?

I have a contact form and I need to set by default, the email input with the current user's email address. I have added a js file, where I set the title to an input like this jQuery(this).val(...
0
votes
0answers
14 views

2 form on same page

On my site, i have a button with popup that display a booking form. This button is visible on every pages of the site. the code of this form is : <div class="booking-form"> ...
0
votes
0answers
8 views

When admin select the value from the dropdown list , the new information is added to particular selected item and display on that page?

e.g if admin add information and select Bahria town from dropdown list then the information is added on the baheria town page .
0
votes
1answer
27 views

Wordpress shortcode returns the data before <!DOCTYPE html>

I try to make a form with shortcode. Main plugin file: require "functions.php"; function form_shortcode(){ ob_start(); include "form.php"; return ...

1
2 3 4 5
26