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.
1,348
questions
1
vote
1
answer
540
views
Reason action hook won't work with update_post_meta from frontend form? Alternative?
The code below works when I am inserting a post/using add_post_meta when submitting a form. The page refresh is flawless (see How can I fix a slow redirect after form submit from frontend (no plugin)?)...
1
vote
1
answer
7k
views
Taxonomy search/filter with multiple taxonomies and multiple taxonomy terms
I am trying to build an advanced search form that allows users to select from two taxonomy based drop down menus. Each taxonomy drop down has taxonomy terms from which the user can select multiple ...
1
vote
1
answer
2k
views
How to know what submit button the user clicked?
I'm working on my settings page, I want to add two different buttons to the form and do something different depending which the user clicked.
The documentation states I can create two buttons like ...
1
vote
1
answer
1k
views
Registration form labels - add asterisk
Is there an easy way to add a required symbol like '*' after the html <label> text content in the default user registration form?
I'd like the Username and E-mail labels to display: Username * ...
1
vote
1
answer
3k
views
wp_create_nonce function doesn't work inside a plugin?
I am writing a WordPress plugin which is creating a form in one of its functions. It looks like this (very simplyfied):
class MyPlugin {
public function createForm() {
$nonce = ...
1
vote
1
answer
1k
views
Using ajax with wordpress
I'm trying to get my head around ajax requests in Wordpress and am finding it hard to understand. Basically I have a form that has a number of steps and you move through these requests using ajax, ...
1
vote
1
answer
3k
views
Add Div to Comment Form
I have some code that displays my comment form and my custom validation, what I'd like to do is add a div right underneath the title, but I'm not sure how to do that because that code is generated...
...
1
vote
1
answer
2k
views
limit characters when posting from form
I have a form were users can post question on my page and I would like to limit the characters in the description part of the form. It would also be a plus if I could get a word counter to work.
The ...
1
vote
2
answers
841
views
recommended practice for form submission
I want to create a form on a page but how do I handle the form submission.
Which hook should i implement to handle my submission? Probably dirtiest would be to do it in the theme itself but I don't ...
1
vote
1
answer
7k
views
Using Multiple Submit buttons to trigger customised php functions
I may be going about this completely the wrong way but bear with me... I have a long guestlist that is automatically populated using a foreach table.
I would like to put a 'No Show' button on this ...
1
vote
2
answers
5k
views
How to load javascript file on homepage in Wordpress in order?
I am using a quicktags plugin, which was not loading on the home page, now it does, but it does it on the wrong place. How can I solve this?
I want the quicktags.min.js file to load first, rather ...
1
vote
1
answer
96
views
Using AJAX with Forms
I am attempting to validate and submit a form using AJAX in WordPress, however, the response that I am getting is 0. According to the codex, this would seem to indicate that admin-ajax is unable to ...
1
vote
5
answers
5k
views
How to trigger $_GET request within admin plugin page?
I have this form in my plugin function:
<form method="get" action="" enctype="multipart/form-data">
<p class="submit">
<input type="hidden" name="do_it_hidden" value="run">
...
1
vote
1
answer
2k
views
Creating a custom multilingual form
I need to create a special form for my website where users cand specify a series of data including some textfields, combo boxes and sliders (from 0 to 100). Also I need this form to be qTranslate ...
1
vote
1
answer
116
views
wordpress not displaying my form
When I create a page with the content as [contact-form-7 id="199" title="Untitled"] , it displays the form,
but when I use it as
<div class="first"><?php $recentProjects = get_post('...
1
vote
1
answer
180
views
Creating a form contact page?
I'm newbie on WordPress, how can I create a new page/top-link/contact-form for a contact page?
I'm using a third party theme which allows you to create a contact form with field, but unbelievable I ...
1
vote
1
answer
5k
views
Making the wordpress login form a jQuery dropdown
I'm using a plugin called sidebar-login to display a wordpress login form (it uses wp_login_form) in my sidebar. However, I feel like it the actual form (textboxes and labels) take up too much space ...
1
vote
1
answer
651
views
Adding data to an array in usermeta and displaying it in a loop
I have a front end post form where I take a file upload of an image. That image gets stored as a custom field which is easy enough to do. What I need to do though is store each unique image url for ...
1
vote
2
answers
2k
views
How to create and retrieve data from a special registration form?
What is the recommended way to approach the follow issue? I have to create two pages. On one page I will have a small form where users will be able to register themselves (with or without photo). On ...
1
vote
2
answers
2k
views
RSVP form for Facebook events from a Wordpress post?
Is there a way to add a RSVP form to a Facebook event in a Wordpress post?
(let's assume I have a website linked to a Facebook application and I want to publish public events I have published on a ...
1
vote
1
answer
197
views
How to take options from form fields and turn them in to links?
I have a form in WordPress with options when clicked they retrieve a filtered posts. I want to take the options from the form and place it like normal links. Can this be done? Thank You all in advance ...
1
vote
4
answers
3k
views
Retrieving a Value from a wp-database
why my sql statement is not returning any value.. is this wrong?
<?php
global $wpdb;
$result = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->wp_frm_item_metas"))...
1
vote
1
answer
250
views
Adding Custom Forms
I'm looking to create a page for a wedding site that will have a form. The idea is that it is an RSVP page where a visitor will input a unique string that was on the invitation that they received and ...
1
vote
1
answer
2k
views
Help with forms and nonces
I am trying to create a nonce to use with a (public-facing) form.
Below is my code:
function my_form() {
if (isset($_POST['submit'])) {
$name = $_POST['name'];
$description = $_POST['...
1
vote
2
answers
7k
views
WordPress custom form action url
Is there any way to replace standard WordPress comments form action, which usually looks like this:
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="...
1
vote
3
answers
395
views
Custom CSS for plugin form
I have a short code that is adding a form to a page. How do I ensure that the CSS for the form is loaded in time with the shortcode?
1
vote
2
answers
4k
views
Form doesn't submit on second submit call
I've been strugling with the following issue for over a week now so please excuse the long description.
I want it to be as accurate and clear as possible:
I'm using the "simplr registration form" ...
1
vote
1
answer
617
views
How do I let users upload files to a chosen location?
I found some plugins which let me make my own forms but none worked for different reasons.
I simply want to make a form so that users can upload files to a folder located in www.chusmix.com/images
...
1
vote
2
answers
126
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 ...
1
vote
1
answer
487
views
Send email button in custom post type backend
I've added a button in the backend of my custom post type editor.
I want to send an email using wp_mail() when admin user click a button.
I've added this custom form and button to a meta box. See ...
1
vote
1
answer
38
views
WP plugins for building a database?
I am a beginner at WP, I need some ideas on how to proceed with the following problem:
I need to create a tool that will build a database for a client's WordPress site.
The database surrounds authors ...
1
vote
1
answer
292
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 = "[email protected]" instead of $...
1
vote
1
answer
58
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. ...
1
vote
1
answer
1k
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/...
1
vote
1
answer
69
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 ...
1
vote
1
answer
1k
views
Cannot prefill hidden Ninja Forms fields
If have a page where you can select a specific broker from a list. The broker name has to be filled in into the hidden field in Ninja Forms.
if(jQuery('#broker-list').length) { //checks if the list ...
1
vote
1
answer
73
views
How to submit form in a PHP file in WordPress?
I have a simple form in my WordPress footer.php:
<form class="form-inline" role="form" method="post" name="contact" action="sub.php">
<div class="form-group">
<label class="...
1
vote
2
answers
279
views
get_terms <select> <option> adds slaces to the resualt
If I run this code I get the desired result
<?php
$terms = get_terms( 'call-type' );
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
foreach ( $terms as $term ) {
echo '\''...
1
vote
1
answer
3k
views
Hook into and send mail using WP Mail SMTP type plugin from HTML static front page?
I am reusing an HTML Bootstrap page as a static front page on a WordPress site. The front page has a form in it which I want to use as a Contact Me form. I've installed the widely used WP Mail SMTP ...
1
vote
1
answer
10k
views
WooCommerce registration password field not displaying
For WooCommerce registration form we only have one email field and I want to add password fields for this. I have tried to find online help but there are few support pages only for repeat password ...
1
vote
1
answer
871
views
Ajax posts filter by date, comments, top views, top likes
I'm trying to create a simple Ajax posts filter, It's working with date and comment but not working with the top views or top likes.
So, how can i make the isset( $_POST['top-views'] and isset( $...
1
vote
1
answer
1k
views
Custom form action to handle data inside a plugin
This is a stupid question, but I don't have much experience in the wordpress development. If I have a custom form that need to interact with a custom plugin, how I can get the submitted user data ...
1
vote
1
answer
118
views
wordpress plugin php file processing form
i try to analyse a plugin operations , and , at some point we fill a form to be process , but i don't know by who the form is processed as i have this kind of html form , so i wonder how i can know ...
1
vote
1
answer
732
views
How to set a contact forms total size limit
I have a client who wants to be able to upload either one 30MB image, or several smaller images, which in total amounts to 30MB.
Is there a way to solve this for Contact Form 7 or any other forms ...
1
vote
1
answer
2k
views
Wordpress upload_mimes not working for front-end uploads of 3D files
So, after the new WP updates my form will not allow certain files to upload. I have a Gravity form with an upload field to submit 3D print files. I can get one type of file to work, but not the others....
1
vote
1
answer
1k
views
CRUD front end for mySQL in Wordpress
I hope I've come to the right place. I want to enrich my Wordpress site with a front end to MySQL database, which I host on the same server as my WP site.
I have actually migrated my (former) MS ...
1
vote
1
answer
308
views
How to query custom post types posts filtered by multiple custom taxonomies through a form selection
I'm trying to create a sort of selection menu, in order to select custom posts by different custom taxonomies. I did the selection part, but I can't get to output my post and I can't understand where ...
1
vote
1
answer
9k
views
Contact form 7 Dynamic text - placeholder on GET field
I am using Contact form 7, with the Dynamic Text plugin. This works really nicely...
What I'm doing is setting it up so that if the user clicks on a link on a product, it redirects them to an ...
1
vote
1
answer
815
views
Send a value to woocommerce with a button type submit
I'm using wp-crowdfunding extension, and i'm overriding a file called "fund-campaign-btn.php".
what it does : display a field and a button, so you can type your price and click on the button to send ...
1
vote
1
answer
49
views
Cannot find an OLD Gravity Form on an OLD Word Press site [closed]
I am not a regular user of Word Press but I have recently been editing some Gravity Forms on our websites that feed data into Salesforce. On the Admin page, there is a tab for "Forms" with subtabs for ...