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
-1
votes
0answers
10 views

Generate custom code from registration form

I need to generate a custom code, kind of a hash code, from a field received in a form. The code would be a function calculated from this particular field (a 6-digit number), and it has a few ...
1
vote
0answers
18 views

Sliding Register - Login Forms

I want to make a sliding Register - Login form on WordPress like this one. https://codepen.io/zaidik/pen/wvMapoM Can someone please help me with this?
0
votes
1answer
31 views

comment form code redirect to wp_comments_post.php with blank page

comment form in single post worked well. then after adding some customization, after posting a comment, it redirects to this link wp_comments_post.php with blank page. Here is my code in comments.php ...
-1
votes
0answers
13 views

Connecting forms and google map

I want to create a form on my homepage in WordPress where you will be able to insert your location, or the website will take it and provide it to the form. And then I want to show the nearest location ...
-1
votes
0answers
11 views

WhatsApp form input with WP [closed]

I have a site where users can login and report a crime on a map using Templatic directory theme. Are you able to allow users to fill out some fields on WhatsApp and log the crime via WhatsApp? And ...
0
votes
1answer
18 views

advanced custom fields and contact form 7

I want to use contact form 7 shortcode in advanced custom fields I created field called shortcode with advanced custom fields and put the contact form 7 shortcode in it. it displayed the form as ...
1
vote
2answers
30 views

Wordpress posts with multiple fields

I am helping my kid create a website on Dinosaurs. I have a PHP hosting available so first though of creating a custom app. But since was primarily about displaying text with images I then went for ...
0
votes
0answers
16 views

How can I hook forms to my custom plugin?

I'm creating a plugin that does API requests. I want to create forms using wordpress editor, elementor or WPforms so that when a user submits the form, the plugin receives each value in a form as a ...
0
votes
1answer
15 views

How to submit the date with ajax?

I have been trying to create an appointment form. Everything else is working but I am not able to submit the date. Here is my code: My HTML for the date field: <input type="date" name=&...
0
votes
2answers
39 views

WP_Query with many meta_query arguments taking a long time to load

I have a search form withwp_queryargument There are many checkbox in this form The problem start here, it takes a long time to load when you select all the options, this query takes almost a minute to ...
1
vote
0answers
12 views

How to clear woocommerce checkout form after pageload

I am offering customers a repurchase on the order confirmed page. If they click the link they are sended directly to the checkout page. However, the form is then prefilled with the previous data. I ...
0
votes
1answer
54 views

nonce in custom form is not verifying

I have a shortcode which calls an html form: function add_signup_form () { require_once ( "apps/registration_form.php"); return signup_form(); } add_shortcode( 'add_signup_form', '...
-1
votes
0answers
18 views

Contact Form 7 Dropdown depending on post selected

I am trying to create a form using Contact Form 7 that allows user to: in the first select box: select custom post (type: medicines) within title, in the second select box: select one of meta_values (...
0
votes
0answers
14 views

I'm needing to figure out how to create a page that user could create a “task” and it be selectable on a form

Essentially what I am looking to do is to have a page designed that is only accessible through a client login, but the one page would have the ability to create a "calendar task" if you will....
0
votes
1answer
21 views

Shortcode to embed Edit Account form not working

I'm creating a short code that shows both first and last name of the user if he's logged in, or, if he's logged in, but hasn't configured any name, it will return a random name with a message telling ...
-1
votes
0answers
10 views

Can i sell Udemy course on my lms website?

I have created an LMS website in which I have installed ultimate pro membership plugin. I want to make membership form in which I can charge my customer on a monthly basis and they can get udemy paid ...
1
vote
1answer
19 views

Custom search results page not working with empty search

I have a custom search results page that works fine except when an empty input box is submitted. When an empty input box is submitted, the header on the results page displays "XX results found&...
0
votes
0answers
21 views

contact form and WP loop

I am trying to learn how to build contact form from scratch without plugin. I came across this tutorial https://premium.wpmudev.org/blog/how-to-build-your-own-wordpress-contact-form-and-why I am not ...
0
votes
0answers
10 views

Form Handling Page Issues

I have been struggling with a form to database function for awhile and I am not sure where I am going wrong. My goal is to take the users data, and then update that respective users data table for ...
0
votes
0answers
20 views

Confuse between forms and tables

I’m get confused between these notion and i don’t know wheres to start from for my project. I juste want to have the possiblities to get multiple evaluation to person (list of sportif) from the font-...
0
votes
0answers
27 views

Modify HTML structure of fields in woocommerce checkout form

Normally, woocommerce html output for checkout fields (billing and shipping sections) places label tags before input tags and wraps it all in a paragraph tag. I'm trying to alter the Woocommerce ...
0
votes
0answers
5 views

Woocommerce form action change

sorry for probably basic thing for you but i really don't know why my situtation happens. I have simple shop on woocommerce. I have in form-checkout.php file code like this: <form name="...
0
votes
0answers
14 views

User input to database

I have given up all hope. Let me start with that. Goal: User inputs data into a form (preferable one that looks clean and is scalable across platforms) User presses submit and the information is ...
1
vote
0answers
17 views

How can I find actual logic php file in form's action path?

<form name="checkout" method="post" class="checkout woocommerce-checkout" action="http://localhost:10010/shop-2/checkout/" I am using woocommerce plugin. this is checkout page form's html element. ...
0
votes
0answers
13 views

Forms: Use predefined values ​if users do not fill out forms

I'm making a form using PHP and HTML. I want the form to use a predetermined value if the user does not fill out the form. Default value: Name: Jhon Email: jhon@example.com Message: Without message ...
0
votes
0answers
16 views

How to upload an auto-generated URL Screenshot in a User Submitted Post?

I have a form that allows users to submit a post, and one of the fields is a URL. I would like the form to submit that post, and also upload a screenshot of the URL that is generated by the code. I ...
0
votes
0answers
9 views

Form in Admin Panel

I am developing a plugin. Now I need to display a Form in Admin panel and submit it. How can I do it ? Could anyone help me in this regard ? Any tutorial is helpful.
0
votes
1answer
13 views

wordpress contact form messages not sending although it saying they were sent successfully with this php code

this is a contact form code which works and when I submit the message, it says thanks it was sent successfully, but unfortunately I have not got any messages. I use it on wordpress on local host. ...
1
vote
1answer
21 views

Can't Listen to KeyDown in TInyMCE Iframe (jQuery) and Pass it to Parent HTML FORM

I am trying to build an HTML form with TinyMCE textarea such that on Clicking Ctrl+S, it submits the form, by clicking the SUBMIT buton of form. I am using jQuery, here is the KeyDown jQuery(...
0
votes
0answers
14 views

AMP and Paypal form CORS issue

I'm having an issue to use the Paypal "buy now" button on AMP pages (it's working on non AMP pages) I'm using this button (code from Paypal website) : <form action="https://www.paypal.com/cgi-bin/...
0
votes
0answers
7 views

How to create button that points to member/user information under Wordpress Multisite?

Hi I am trying to create website with members profile made under Wordpress Multisite. How do I create buttons wherein a member cannot edit individually but only through an input field in a form? ...
2
votes
0answers
9 views

How to automate filing a form as a user

Sincere apologies if this has been asked and answered. I'm a software developer with almost 0% experience in web. I write C/C++ engineering applications. I want to automate filling in a form on a ...
0
votes
1answer
25 views

Trying to add admin file upload form plugin

I'm trying to create an upload form from my admin page via a plugin. I've cobbled together some code from a few sources, including this one: https://www.htmlgoodies.com/beyond/cms/create-a-file-...
0
votes
0answers
25 views

Upload Image through pods form to create custom post type

I'm using the pods framework for all custom post types on my wordpress site. The customer I'm building the website for wants to have a form, where his affiliates can submit their company and some ...
0
votes
0answers
15 views

Suggestions on how to properly code a web form to submit CPTs from the frontend

I am looking for a way to code a secure web form to provide a way for my users to submit custom post types from the frontend on WordPress. Not really interest in using a plugin for this case though. ...
0
votes
0answers
10 views

How to submit multiple nonces at once?

I have a form that incorporates three different forms from a plugin. Usually, each form would have it's own submit + nonce (which already exist and work), but I need to have just a single submit ...
0
votes
1answer
17 views

How do I register user without being authenticated

I get form data through ajax and I want to use it and add a new user with a subscriber role. to the original Wordpress users and also send them a notification about their account. Here is the bit of ...
0
votes
1answer
11 views

WP Donation Form with custom payment API

I want to know if there's a plug-in out there which gives you the possibility to create a donation form and to use a custom payment gateway(not only Stripe,PayPal, etc). Thank you!
0
votes
1answer
11 views

Clickable Text To Replace Radio buttons

Hey guys Im trying to get some assistance brainstorming. I have this Contact form on a site, That has Selectable text in place of something like checkboxes or radio buttons Im using formidable ...
0
votes
0answers
16 views

Form input values are empty after submit

I'm trying to build a settings page for my WordPress theme. I have created the following form which includes repeatable input fields. Everything is working except when I submit the form and refresh ...
0
votes
0answers
11 views

how do I hide or encrypt query strings for gravity forms

I am using gravity forms in wordpress and want to hide the query string from the user so they can't easily mess with it? Whats the easiest way to do this without effecting the form, so auto populated ...
0
votes
2answers
38 views

WordPress Settings API Repeatable fields

I'm trying to find a way to add repeatable fields inside a custom admin page that I've made. Code: /*WordPress Menus API.*/ function add_new_menu_items() { add_menu_page( ...
0
votes
0answers
31 views

Redirecting wordpress search query to archive page

My sincere apologies for asking this question as I am quite certain that this is a relatively easy topic, unfortunately my many hours of searching got me no satisfying results. I do not mind ...
0
votes
0answers
10 views

How to limit users to view selected forms in WP Forms?

I'm using WP Forms with my Wordpress application. I have around 10 forms and I want to dedicate each form to be accessed by one particular user only from the backend. The customers will submit the ...
0
votes
0answers
10 views

E-mail form problem in Wordpress : the form div disappear

I'm new to this forum and desesperate about getting some help. I have a problem I don't understand in Wordpress. I have an e-mail form on my website, but when I fill this form I'm am redirected to "...
0
votes
1answer
33 views

How to create a widget with a populated dropdown?

(added the code; I thought I had it in here) I am trying to build a widget that has a dropdown. public function form($instance) { global $wpdb; global $event; global $events; ...
0
votes
0answers
20 views

Adding a second product at checkout via AJAX - Can I just manipulate the code, or do I have to copy it?

I have a checkbox that once checked, is checked by AJAX and a product is added to the cart. Do I need to duplicate the entire code or is there a cleaner way of adding a secondary product that does ...
0
votes
0answers
13 views

Save Custom Password Protected Page Entries to Database

I'm building a custom form to access a password protected page (adding two fields: Company and Email) and I would like to save all the entries into the Database. It's only saving to the database ...
0
votes
0answers
11 views

contact form ajax error response

I have this code that is supposed to stop the form if the nonce isn't correct. I'm not able to test my contact form, I will get the 'Errore' response and the emails are not sended. Is there a fix to ...
0
votes
0answers
18 views

Custom Sign up form doesnt work

My custom sign up form works perfectly on wordpress but when I modified it and include to modal it doesnt work. below form works perfecktly: <?php global $wpdb; if ($...

1
2 3 4 5
25