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

Are there any No code solutions to creating a Form on wordpress that allows printing of submitted form [closed]

I am trying to create a fillable form on wordpress, and when we submit it takes us to another page, which have a printable predefined text with information from the earlier form. I am looking for a ...
0
votes
0answers
18 views

What is the recommended way of sending dynamic content depending on form contents? [closed]

The task of my client is this: He has a wordpress site and wants to offer a service where he can send custom legal texts per mail. Depending on which single-choice the users select at a form, it ...
0
votes
1answer
34 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....
0
votes
1answer
17 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 ...
1
vote
0answers
20 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 ...
0
votes
1answer
14 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 ...
0
votes
1answer
19 views

Gravity Form Autopopulate [closed]

I have created a Form using Gravity Form. I created a few fields as well(Name, Select Price, and Pricing). I have attached the Form screenshot There is a radio button for the "Select Price", ...
0
votes
0answers
27 views

How to create a custom post-new.php page for plugin , no wp menu

I am currently creating an administrator plugin to manage and edit a large amount of separate information about establishments. I recreated a page with the list of articles which is linked to a new ...
0
votes
1answer
37 views

How to upload two input files [closed]

i'm doing a front end post submission for a CPT called "empresas" and with CMB2 i create a custom field called portfolio which type is file_list so the business can upload their work In my ...
0
votes
0answers
10 views

Trying to update Woocommerce meta values

I'm using WP User Frontend Pro and WooCommerce on my site. Created custom add product form to my site and it almost works perfectly. All my products should virtual and checked my DB, its meta key name ...
0
votes
2answers
39 views

How to send custom form submissions to WordPress Database?

I have created a form and the table in the database I want submissions to be sent to. From my research I've found that this code should send it to the database: <?php /* PHP code that processes ...
0
votes
2answers
16 views

Form that generates an ID for the customer

I wonder if this is possible on wordpress. In my application I will have a contact form, in this contact form, when filling in the fields, there must be a field that will generate an ID. This ID the ...
1
vote
0answers
18 views

How can I style the required field error message [closed]

As the code was provided here to show up error message in the form itself: https://wordpress.stackexchange.com/a/131924/210881 But i wanted to make the required message like shown in the image below. ...
0
votes
1answer
18 views

How can I add a custom caclulation form in post?

I want to create a dunamic form to make calculation for users. It looks like shopping card. I can develop this in a custom html,js and css. But can I do this in a wordpress post? Or can I import a ...
0
votes
0answers
17 views

404 Page Not Found - only when not logged in

I have read about this problem quite a lot and tried all the suggested solutions such as disabling plugins or re-saving permalink settings but I still have the issue that one section of my website ...
0
votes
0answers
17 views

admin post redirects to localhost when not logged in

I have a form that i'm trying to run an action when it's dont I send it to admin-post like this: <form action="<?php echo admin_url('admin-post.php'); ?>" method="post">...
0
votes
1answer
94 views

Create a form with custom autocomplete address field and CSV import values

I want to create a contact form with 2 sections. The first section includes an address field. I have a repository of 100,000 addresses in CSV format. I need to import all addresses into the address ...
0
votes
1answer
16 views

User register hook is not working in woocomerce register form

Hi guys I cannot access the user email even if I do a simple echo function. It doesn't show anything in the front, but when I hit some error and on the error page I can see the echo. What can cause ...
1
vote
1answer
20 views

woocommerce registration form with klaviyo(don't work with current user)

I'm trying to integrate klaviyo with woocom form, this is the code I added below. The issue is when I add any hardcoded email in variable $emailUntrim = "xyzxyz@gmail.com" instead of $...
0
votes
1answer
48 views

How to add fields in custom registration form, validate it and aave to db? [closed]

I use a WP theme with a custom registration form. I want to add two fields to it (for phone number and company name). What to add to the php file of the form and what to the function file of theme ...
0
votes
0answers
28 views

How can I use a plugin shortcode inside of a html form?

I'm using the Simple Wordpress membership plugin for page access. There is a shortcode that can be used to display the username once logged in. I have a form that submits a mysql query and creates ...
0
votes
0answers
36 views

Localize custom form in wordpress / wpml

What I am trying to achive? I have a feedback form which is handled by a java servlet. This servlet expects a parameter "locale" for the currently selected language (see code below at xxx ...
0
votes
1answer
47 views

Form submission in Wordpress front end

I am learning WordPress coding. I have a Form like below. <form action="" method="post" enctype="multipart/form-data"> <input type="text" name=&...
1
vote
0answers
13 views

Display split checkboxes in a Formidable forms graph [closed]

I'm using Formidable forms to create a training diary and want to display the data in a graph. I've got that working (sort of) but want to display the checkboxes (here: https://j4gdesign.co.uk/...
1
vote
1answer
53 views

load common thank you template with different content for different pages

i have created a template called thank-you.php and inside that i want to show different content as per the parent url. for e.g. mywebsite.com/page/thank-you and mywebsite.com/another-page/thank-you. ...
0
votes
0answers
9 views

What tool/plugin to use for form/survey with prefilled WooCommerce data?

We are running an e-commerce/WooCommerce site and some of our orders are gifts to someone other than the person placing the order. In these cases we want to send out a form or survery of some sort to ...
1
vote
1answer
21 views

Is textarea always accesible throught textarea#content in wordpress dashboard for a specific page?

In the wordpress dashboard/admin area of a page. I add this event handler to jQjuery. When I click the button with the name btnSave the content-editor replaces it's content to the text wow (It's not ...
0
votes
0answers
53 views

Saving form with AJAX for WordPress Plugin

I am developing a WordPress plugin that needs to have multiple profiles that the admin can create on the Admin screen. The plugin appends a block to the end of every (unless specified otherwise) post, ...
0
votes
1answer
29 views

Programmatically populate form fields with data

I want to create my own code for displaying and editing a logged in user's profile. For that I want to create a form inside a Wordpress page and pre-populate the form fields with data before the page ...
0
votes
0answers
18 views

How to correctly submit a form using ajax from a custom plugin's template

I want to submit a form from a tamplate to my custom plugin but I always get a bad request 400 response. What is the correct way yo do something like this? My form: <form id="entry_form" ...
0
votes
0answers
31 views

Populate a custom form with user data [closed]

I want to create my own code for displaying and editing a logged in user's profile. For that I want to create a custom page/form with the required form fields. I will use elementor pro forms for this. ...
0
votes
0answers
19 views

Adding a new field to already posted comments

I want to add a checkbox (verify) to each comment so that the author of the post can verify each comment. The checkbox needs to be read-only to anyone but the author of the post. I've found different ...
1
vote
0answers
21 views

Validate form in page in modal window [closed]

I need to create a form validation system showing the errors in a modal window, not by alerts, but I can't find anything. The form is handmade on a normal Wordpress page and I want that when the form ...
0
votes
0answers
24 views

design custom form for wordpress without using any plugin

I have design a static form, now I want to convert it to Wordpress form without using any plugin like contact form 7 and..., I want to know is any way to add a custom menu item to wordpress dashboard ...
1
vote
0answers
50 views

Dynamic dropdown custom post list based on dropdown selection

I have two dropdown list on a form , one contain the first custom post 'formations' and the second contain second custom post 'centers'. I can call and display the list of center by formation (ID), ...
0
votes
0answers
24 views

Formidable Forms custom AND/OR filter

Currently using the frm_where_filter on Formidable Forms for a view as the example explained on https://formidableforms.com/knowledgebase/frm_where_filter/#kb-add-two-filters-combined-with-or ...if ( $...
0
votes
1answer
45 views

How to code auto-retry for API call

On my site I have a form that can be filled out by users. Once submitted, I am storing the form data in a third-party service using their RESTful API. function gravity_forms_1_after_submission( $entry,...
0
votes
1answer
36 views

Change dynamically the dropdown list value

I have a form where i list a related custom post type by ID of the parent custom post type on a checkbox list like the picture. so when i check an option to 4 options i want to have a list of the ...
1
vote
1answer
29 views

Match tag names with form titles

I am trying to match tag names with form titles to fetch the correct form into the current post, to subscribe to new posts tagged with the current posts tag. I only have 1 tag assigned per post. The ...
0
votes
1answer
34 views

Perform multiple actions after wp_insert_user()

I have a custom registration form on my homepage, which runs wp_insert_user correctly. However, after it has created the user, I need to perform the following actions: Log user in immediately Add ...
0
votes
0answers
29 views

Custom Registration Form on Homepage + add to cart on submit (no plugin!)

I know there are many posts here on how to add a custom registration form, but for some reason I can't get it to work. I need to have a custom registration form on my homepage, that on submit does 2 ...
0
votes
0answers
16 views

How to add Post Update Notification Bubble for custom post types?

WordPress | Question I have created a custom post type to store booking information submitted from a front-end form by customers. In the back-end, however, I don't see any notification bubble like ...
0
votes
0answers
52 views

How to sanitize my GET string before using in post query

My question is about sanitizing user input data before using it. I am not very experienced in neither PHP or this sanitizing subject so I apologise in advance if this question might come across as ...
0
votes
0answers
19 views

Wordpress - Users with contact form on profile

I should build a site, where the users sign up and can create and customize a profile like a social media. But instead of adding friends to a friendlist (like fb ect.), all the sites should have a ...
1
vote
0answers
60 views

How to use $query->set with post__in?

I use the pre_get_posts hook to change the search results because I have a filter form. This hook gives me access to an already made $query object. This line does not work: $query->set('post__in', $...
0
votes
2answers
23 views

How to save unsuccessful form submissions locally in WordPress [closed]

I use Contact form 7 and I was wondering if there is a way to save the information filled out in the form even if the form does not get submitted. Few days ago there was something wrong with the email ...
0
votes
0answers
26 views

How to stop iFrame form from reloading on mobile?

I am loading a form via an iFrame. On a desktop it works and submits correctly. However on a mobile device once the user's keyboard pops up then the iFrame refreshes, clearing the form and the ...
1
vote
1answer
167 views

Stripe Error: must provide source or customer [closed]

I am fairly new to wordpress dev and I am trying to include a stripe checkout form to a custom page I developed from scratch. I followed stripe's documentation on how to do this: [https://stripe.com/...
0
votes
1answer
18 views

Search WordPress using static html page

So I have a .html page under my Wordpress website and I want to be able to use the search button on the static html page to search the search.php page, is that possible? Is this correct? This is ...
0
votes
0answers
7 views

Linking a custom application form to database to manage a large user site?

Here's a bitter scenario. Some experts could advice on this for a practical solution. We are in situation that we are building a site with for a growing user base, transactions (user activities) and ...

1
2 3 4 5
26