Skip to main content

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

Why is email filled in when not logged in, even for new visitor

I am the developer of the SpeakOut! WP plugin. I have a user of the plugin that is seeing an email address pre-filled on a form. Normally the answer to this is "Yes, because you are logged in ...
Steve's user avatar
  • 297
0 votes
0 answers
5 views

Display all products outside of filtered function

I have a products page which displays products based on filters. I believe I have found the code in which all of the products are queried. Normally, if a customer selects an attribute such as '...
JohnLyons's user avatar
-1 votes
0 answers
10 views

Page not found after submiting post form

I have a simple form like so: <form method="post" action=""> <input type="hidden" name="buyer_register" value="true"/> <div class=&...
frankastin's user avatar
-1 votes
0 answers
17 views

How to make checkbox required

I am trying to make a checkbox required in order to proceed to the next page. I am develping inside of functions.php. Does functions.php not allow the required inside of regular HTML tags? Here is ...
JohnLyons's user avatar
0 votes
3 answers
63 views

Is there a solution to expired nonces in forms when using full page caching that doesn't involve configuring the cache?

Summary I want to include a form in a WordPress page that includes a nonce field, and upon submission it validates the nonce, and for this to work fine when full page caching used. Issue with full ...
bigdaveygeorge's user avatar
1 vote
2 answers
96 views

How to redirect using a custom wordpress api endpoint after form submission?

I'm using a custom wordpress endpoint that I have defined in functions.php: add_action('rest_api_init', function () { register_rest_route('custom_endpoint', 'submit-application', [ '...
Brenden's user avatar
  • 11
0 votes
0 answers
27 views

Custom PHP contact form issue

I'm building a WP website with a custom contact form in PHP, HTML and Javascript. The issue is when the user click the submit button to send the form, it redirects to a 404 page. The PHP function: ...
Mathieu Préaud's user avatar
0 votes
1 answer
34 views

Primary menu item is not highlighting when page is active even though it is linked from a url with query string to pre-populate a form field

I'm using the WordPress Astra theme. I have set Astra customization to highlight the active page primary menu item in the navigation bar. However, when I link to the "Contact" page using an ...
JLEM's user avatar
  • 1
0 votes
1 answer
30 views

Create a zip code form

Is it possible to create code for a WordPress page (or create a plugin) that will allow a visitor to enter their post code (zip code) and see a price as a result. Something like a form field box where ...
Frank B.'s user avatar
0 votes
1 answer
42 views

How to overwrite a thrid party block's css in a child theme?

Consider a Wordpress (6.6) child theme based on the default Twenty Twenty Four theme: How do you style form fields used in third party blocks? Just copy and pasting a modified version of the third ...
SePröbläm's user avatar
1 vote
0 answers
16 views

Distinguish between forms on the same page in 'Form responses'?

I have a page with two forms. The forms are created using the Jetpack 'Form' block. The responses show up in the backend, under 'Feedback'. The list on this page includes the 'Source', which is the ...
MastaBaba's user avatar
  • 311
0 votes
1 answer
17 views

Is there a way to edit non-custom term attributes?

I have a custom post type (FAQs), taxonomy (FAQ Categories) and everytime I want to create one it appears all the same name, slug, parent, description fields. I was wondering... If there is a ...
neke90's user avatar
  • 1
0 votes
1 answer
43 views

Missing Contact Form/Form Default Plugin in Wordpress

I'm currently using wordpress to develop website and as much as possible doesnot want to use any plugins. When I want to add contact form I see the link below which looks like a default plugin, but ...
Player1's user avatar
  • 101
0 votes
2 answers
36 views

Automatically populating a date parameter within a shortcode

On one of my sites, I use Formidable Forms. I need monthly numbers (simple counts) on submissions for these forms. My current solution is to use this shortcode built-in from Formidable: [frm-stats id=...
MidPiedmont's user avatar
0 votes
0 answers
6 views

I’ve noticed a form field for subscribing to a newsletter (email address) prohibits Apple’s Text Replacement in Safari. Can prohibition be removed?

This issue is something i’ve come across on many websites, the email address field won’t accept paste from the clipboard and it won’t allow Apple’s Text Replacement substitutions to activate inline. ...
wide_eyed_pupil's user avatar
0 votes
0 answers
26 views

i need to resive data external api and show user

i have one form for user , this form send code to external api and i need show user callback responce api this page and not ind plugin for this work (for show responce api current page for user ) i ...
Ali Garivani's user avatar
1 vote
1 answer
39 views

Is there a WordPress plugin or solution that allows to set up forms with a total control over markup

I’m using a Bedrock and Sage stack to develop WordPress site with Blade and Tailwind, and I’m looking for a plugin or a solution to implement forms with a full control over the markup. I would like to ...
tone's user avatar
  • 11
0 votes
1 answer
58 views

Loading specific ajax from a product

I'm new to wordpress, and I need some way to define a property in a new product that will then have it load specific javascript code related to that specific type of product. I may need to load a ...
Scott Wood's user avatar
0 votes
1 answer
18 views

Trying to Find the PHP File/Function that Handles a Specific Form Action URL

I am using a specific plugin that enables basic e-commerce functionality, and am attempting to extend the plugin functionality to include payment processing on the checkout page. The plugin itself has ...
Druid's user avatar
  • 1
0 votes
0 answers
143 views

I am trying to add form using ACF plugin and acf_form() function, but my user fields dont show up properly

I am new at wordpress, so i am very sorry if this is a stupid question, but anyway... I am trying to create form on frontend to add my custom post types with custom fields which i created using ACF ...
Tasha Yan's user avatar
0 votes
0 answers
27 views

CF7 for radio buttons only, ok?

I want to use Contact Form 7 only to use the radio buttons, so this form doesn't need to be send. That mean no submit button. There is a javascript to display content when a radio button is selected. ...
Carlos's user avatar
  • 101
0 votes
0 answers
92 views

WordPress REST API FormData: Form Not Submitted When No Files Attached

I am writing a plugin to show a custom form in front-end. The form contains various input fields (mostly text) and one input multiple files. The submit sends data via an ajax call to a rest api ...
Elena Politi's user avatar
1 vote
0 answers
18 views

Catch Form value at AJAX Form submit

I am working on a Custom Plugin. I have below JavaScript code. const sent_urls = () => { const formData = new FormData(); formData.append('action', 'start_parsing'); ...
Foysal's user avatar
  • 445
0 votes
0 answers
12 views

Creating a form and displaying some of the data on another tab

I am looking for options on how to create a form in Wordpress and then pull some of the data (but not all) that is collected onto another page. Example. The form would collect personal data and also ...
Jill's user avatar
  • 1
0 votes
0 answers
51 views

Code understanding

I found below code in a Plugin. const sent_urls = () => { const formData = new FormData(); formData.append('action', 'start_parsing'); formData.append('...
Foysal's user avatar
  • 445
0 votes
0 answers
15 views

Issue using form in Google app in mobile

I have a contact form on my website, and I'm utilizing Contact Form 7 (CF7) plugin for it. However, when I fill out the form using the Google app on my mobile device, the page seems to reload somehow. ...
Baim Quraisy's user avatar
0 votes
0 answers
23 views

Populate Elementor Form based on first selection

for better understanding, check this elementor tutorial https://youtu.be/wYv0tMFDFG0?si=cg2nQE6a5zl0FdHp&t=610 starting with 10:10 min, is what I need. Instead of Options 1, 2, 3, etc, I have ...
Vali Dragomir's user avatar
0 votes
0 answers
30 views

Trying to use value in form submission to check against external API

I'm trying to be as concise as possible. I'm building a form that takes a value ('address') which in turn would get posted to an external API. However, the real functionality comes with checking the '...
Cynthia Wong's user avatar
0 votes
2 answers
286 views

From Wordpress form submit on-click event, how to call an external REST POST API?

I am new to UI. I have created a REST API and a form in my Wordpress website. Could you please suggest how to make POST call to my REST endpoint on-click event of the form submit button? How to open /...
Nav's user avatar
  • 1
0 votes
1 answer
41 views

Help with commenting system

I am working on creating a commenting system for pages that are populated from a database. I have the main commenting portion working fine, what I need help with now is allowing replies. What I was ...
Darth Mikey D's user avatar
0 votes
0 answers
105 views

Display endpoint's return into a file (file_put_contents())

I've created a form (using WS FORM RUN WORDPRESS HOOK) than when submitted triggers a php script that grabs all the submitted data written on the fields and save them into $variables and everything ...
WinterCold's user avatar
0 votes
0 answers
29 views

add to cart linking to add to cart page

I am making a website in Wordpress and created a custom shortcode for loading the products. That is working fine, however when clicking the add the cart button, if redirects me to the cart page, where ...
Brango's user avatar
  • 1
0 votes
0 answers
21 views

How to create a form that display license key (and email it to user) after the user enter their email and 10 digit code?

I want to create a form with 'email' and '10 digit code' fields that will display a license key which matches the '10 digit code' if it's correct. The user will also receive an email with the license ...
Tom532's user avatar
  • 1
0 votes
0 answers
29 views

Need some suggestions with Relationship fields and CPT/ACF

I am tasked with creating a Student/Teacher Portal where among other things, I need a way to build a way for Admins to assign Teacher with Students based upon Subject and Age group (Age for students). ...
RitZz's user avatar
  • 1
0 votes
1 answer
133 views

Form submission issue in wordpress admin (custom plugin) using $_GET for searching & filtering

I have a custom plugin that was built by a developer which was working fine until last week Friday. The plugin is running on wordpress.com platform rather than a stand alone Wordpress.org CMS. An ...
user2274299's user avatar
0 votes
1 answer
45 views

How i can create multiple separate forms and get a pdf out of the querys of all the forms?

im actually trying to build a complex form. It should look like this: First form with some questions, textarea and standard form stuff Some Wordpress elements i want to design with wordpress Second ...
adilg's user avatar
  • 1
0 votes
1 answer
78 views

Gravityforms login form custom redirect if form not submitted

I am using Gravity forms with Wordpress. For project I want to add function that allow to redirect to different pages based on condition: loginin person didnt submit specific form. For example after ...
user2482734's user avatar
0 votes
2 answers
2k views

Get form fields data on form submission using forminator plugin [closed]

I need to get form’s fields data of submitted/current form on form submission I trying with these hooks forminator_form_after_handle_submit/forminator_form_after_save_entry trying this add_action( ‘...
Dinesh's user avatar
  • 145
0 votes
0 answers
120 views

Send summary email from a form with wp_mail

I'm trying to send two emails (one to the site manager and one to the user) with the data entered in a contact form made by me and placed in a wordpress template, but this doesn't work. i am using ...
LesCa's user avatar
  • 21
0 votes
1 answer
862 views

How to access the fields in WPForms custom action?

I have a form with one text field Phone Number. I want to perform a custom action with this field. How do I access the submitted field in this code? function wpf_custom_form_action( $action, $...
SanSolo's user avatar
  • 103
0 votes
0 answers
61 views

Display file contents within Plugin

Does anyone know what I am doing wrong - I try to display forms from different files within my plugin. all is triggerd by my_shortcode where the via $atts the user choses which form to display. This ...
gladys's user avatar
  • 11
0 votes
0 answers
431 views

Validate a custom form with js and php

I would please need help with the following: I have a form in my WP Plugin, that is validated with js, which works fine, Then I want to validate it using php, display the errors on the form and after ...
gladys's user avatar
  • 11
0 votes
1 answer
220 views

CF7 Remove Comma from 'select' 'radio' and 'checkbox' outouts

I have a few 'select' 'radio' and 'checkbox' options on my CF7 form where the user can choose multiple options .. however on the output there is a comma between each item but I want to remove this ...
Tom Kidd's user avatar
1 vote
2 answers
275 views

Implementing Autosave Functionality for Long, Multi-page Forms in WordPress

I'm working on a project in WordPress that involves creating long, multi-page forms with conditional logic. One of the challenges I'm facing is that these forms can take a while to complete (and I ...
ylluminate's user avatar
0 votes
2 answers
138 views

How can I add email code authentication on form submission without any wp plugin?

I have created a basic multi step form using HTML, CSS and JS. Now all its needs to be added to Wordpress. Form functionality is : When a user submits the form, send code to their email and ask for ...
Frankie's user avatar
  • 11
0 votes
0 answers
31 views

Putting form result in my database

i have a problem with my wordpress rn. I did a form in html and js, and i want to put the actual result in my database where i created a table for it. So basically i did a plugin in simple php that ...
Louis-Emmanuel Metan's user avatar
0 votes
0 answers
111 views

Bulk data save in custom table

I have a form in admin page that store data in custom table, with multiple checkboxs. On form submit I need to save the checked box id with the store id it's related in a key pair way (store_id => ...
Francis's user avatar
0 votes
1 answer
59 views

Can't save formdata in DB

I'm trying to build a form in the backoffice to save some data in a custom table. The form is a list of checkbox, in witch the value is linked to a selected user. So you have to select a user in a ...
Francis's user avatar
0 votes
2 answers
63 views

How can I get lost form data back? [closed]

I had a form plugin installed. There was an issue with the plugin and although customers where competing the form, the form data was not being emailed. We were able to get the form data back, but our ...
Andrew Findlay's user avatar
0 votes
1 answer
254 views

Hook a search form anywhere on the site, using a custom plugin

I'm new and I apologize if I ask an already existing question. But I can't find the information I'm looking for. I need to know how a search form works in wordpress. I'm creating a custom theme and ...
f3l1x's user avatar
  • 1

1
2 3 4 5
28