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
0 answers
14 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
12 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
  • 449
0 votes
0 answers
7 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
47 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
  • 449
0 votes
0 answers
9 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
9 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
22 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
36 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
17 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
23 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
26 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
17 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
19 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
0 answers
7 views

Quiz page template, checked attribute missing when option selected

I would like to add a quiz page template to my WordPress site. Part of the template is the code below. The problem is that when any of the inputs is selected, the checked attribute is missing. <div ...
Kostas Stoumpos's user avatar
0 votes
1 answer
70 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
0 answers
11 views

Is it posible to multiple entry value before submit Gravity forms?

Is there any way to do this case in Gravity forms: I use: Gravity Forms Gravity Forms Multi Pages I have three steps: Step 1: contain Option Field Step 2: also contains the option Field Step 3: ...
Baim Whello's user avatar
0 votes
1 answer
26 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
0 answers
16 views

WP Form Date Field - Remove Day option

I’m using the WP Form date field in dropdown format. Is it possible to disable the Day option? I need the user to select only Month and Year.
Adeel Abbas's user avatar
0 votes
1 answer
46 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
0 answers
16 views

admin_post hook not called / callback not executed

I'm trying to process a form, and struggling with admin_post.php. Here is the relevant section of my plugin PHP code : add_action('admin_post_cs_submit', 'submit_test'); add_action('...
Keyran's user avatar
  • 1
0 votes
0 answers
10 views

How do you send a parameter from an elemetor form into another form in a popup?

I would like to recreate this on an Elementor site. https://www.pimlicoplumbers.com/ where the value you select in the "I need help with ..." field is sent into the form on the popup you see ...
Jasperjon's user avatar
  • 101
0 votes
0 answers
11 views

Create something similar to infojobs

I want to create a form where the users can fill content (and even upload pdf files, and so on) that will be published on my web page. I also want this post to have the possibility for other users to ...
Txomin Mitxelena's user avatar
0 votes
0 answers
42 views

How to make Contact Form 7 work when injected via AJAX in WordPress?

I am working on a WordPress project where I need to use Contact Form 7 as part of an AJAX response to check if certain data is available. However, I am facing an issue where the form is not working as ...
DiaJos's user avatar
  • 101
0 votes
2 answers
888 views

Get form fields data on form submission using forminator plugin

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
  • 137
0 votes
0 answers
6 views

Issue with Contact Form 7 on Mobile Phones

I am experiencing an issue with Contact Form 7 not functioning properly on mobile phones on my site: https://www.projectzero.cz/#poptavka. I am seeking assistance to resolve this matter. To replicate ...
Roman Štěrba's user avatar
0 votes
0 answers
110 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
0 answers
16 views

Make a custom from calculator for payment

I am stuck in making the payment form. I want to make a custom form that has a formula for the total price, that price will redirect to a payment gateway that has a payment method like Google Pay and ...
Dev Sonwani's user avatar
0 votes
0 answers
71 views

Can not insert data in database table

I did a form and through a plugin i coded in php, i’d like to insert the result of this form into my wordpress database. But i run into a problem cause nothing is inserted in my database despite the ...
Louis-Emmanuel Metan's user avatar
0 votes
0 answers
41 views

How to setup a form for Majordomo list subscription

I am currently in the process of setting up a simple website for a small community. One of the requests is to have a mailing list that is easy to sign up for on the website. The hosting provider ...
Lucas's user avatar
  • 101
0 votes
1 answer
473 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
79 views

Can't insert into a database wordpress

i did a form with html and js, and through a plugin in php, i wish i could insert the result of this form into my wordpress database. But i run into multiples problems. One was that wordpress would ...
Louis-Emmanuel Metan's user avatar
0 votes
0 answers
37 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
266 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
141 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
124 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
0 answers
21 views

How to reproduce the post format field in a front end form?

I am looking for a php snippet to display the field "post format" of the wordpress admin in a front end form. It is a conditional field, and some of them need to have a special output (ex: ...
Aurore's user avatar
  • 1
0 votes
2 answers
114 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
30 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
99 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
50 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
0 answers
23 views

How to add categories to a custom post type using wp_insert_post($new_post);

I have a custom post type 'memberfile', and a function for users (members) to upload files. Uploaded files are automatically posted as a 'memberfile' post in the backend. In the form for uploading the ...
Bart's user avatar
  • 1
0 votes
2 answers
40 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
155 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
0 votes
0 answers
168 views

Preventing script injections in HTML form

I have a HTML form which essentially searches for posts in WordPress. The markup looks like this: <form class="resourceFilters__searchForm position-relative" role="search" ...
Freddy's user avatar
  • 147
0 votes
1 answer
65 views

Forminator + Hubspot Workflows

I need to send Forminator form data to a Hubspot workflow for a client. This doesn't seem to be working function send_form_data_to_hubspot($form_data) { $hubspot_api_key = 'MY_API_KEY'; $...
Mark Tabner's user avatar
0 votes
1 answer
29 views

Workaround AJAX calling without directly calling WordPress backend (Admin dashboard) because it is restricted to the end user (the public)

Hi everyone please I would like to put a topic up for discussion because I need help asap I have a problem at work we developed a WordPress website and delivered it to the client we are in the final ...
Imad95's user avatar
  • 1
0 votes
0 answers
27 views

Plugin forms overwrite each other's options

I am creating my first WP plugin, where I have two forms. Both work correctly, but when I save the information from one, the information from the other disappears. I'd like to save all options in one ...
Rufi's user avatar
  • 1
0 votes
1 answer
343 views

How can I add a zip code service availability checker in Wordpress without Woocommerce? [closed]

The website is for a business that only provides services in certain zip codes. I would like to be able to display different messages based on if the zip code matches one in my list or not. I couldn't ...
NCBlender's user avatar
0 votes
1 answer
21 views

Is it possible to have a form page for logged-out users where values are stored persistently?

I don´t know if this sounds a bit weird but I´m looking for a way to give unregistered users a form on which they can choose different options and depending on these values there should be content ...
Sascha Valentin's user avatar
0 votes
0 answers
55 views

How to use <button> tag in wordpress?

I am using a custom form without plugin. I have the following code: <form class="form-contact contact_form" action="/contact_process.php" method="post" id="...
Vizante Ion's user avatar

1
2 3 4 5
27