Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
11 views

How to extend the area from text label to div where a click will select a radio button?

I would like to allow a click anywhere inside the div to select a radio button. Currently, the mouse must be over the text label. Clicks elsewhere do not set the radio-button choice. I tried putting ...
-1
votes
0answers
11 views

Pre-Populate Form Fields and Text Field using user database

I am looking to learn how to do the following: let's say I created subdomains for my clients. ex: joe doe for jdoe12.mywebsite.com & sarah short for sshort.mywebsite.com when they click on ...
0
votes
0answers
7 views

I Want to Make a Question and Answer Form System

I want to make an interview system for WordPress website. There will be a question and a form to answer (written answer, not MCQ). There will be the timeframe to answer. If a job candidate can't ...
0
votes
0answers
16 views

Private School Application Form

I'm attempting to set up a new application form for a client whose current form was done by a previous developer with jquery. It seems to only work with PHP versions of 5.6 or below. I'm not familiar ...
0
votes
0answers
27 views

Meta Key array building with multiple input values from fields

I'm trying to build a custom form using UserFrontend on wordpress and I need to copy an array from one of the known meta keys from WooCommerce. Only thing is I'm not sure how to approach this issue as ...
0
votes
0answers
12 views

ninja forms spam protection input uppercase

I'm using Ninja form spam protection input field, where you choose an answer to your question. Does anybody know how you can force input to be uppercase? I've found a lot of code strings but none of ...
-1
votes
0answers
23 views

How can I tack the opening of emails sent with contact form 7 plugin?

I have a problem on a website, I send emails with the contact form 7 plugin and I want to track the opening rate of emails. I found this plugin but it does not work (https://wordpress.org/plugins/...
0
votes
0answers
15 views

Formidable Form on WooCommerce Product, split into multiple line items [on hold]

I was hoping someone might be able to point me in the right direction here… I have a Formidable Form I’m putting on a WooCommerce variable product. That part’s easy and done. In that form, I have a ...
-1
votes
1answer
15 views

Help with showing text when something is entered in my search bar

I'm having troubles replacing text when there is something entered in the search form. As you can see in the image below i want to replace 'mijn gemeente' with the get_search_query text if i'm ...
0
votes
0answers
41 views

GravityForm HTML field turn operators into entities

I'm trying to add JS script into HTML field inside Gravity form editor. It works fine on my site but the client who is using Mac had two problems. The first one was that when he saved changes script ...
1
vote
0answers
20 views

WPForm, how to set date to tomorrow

<script type="text/javascript"> window.wpforms_datepicker = { disableMobile: true, // Don't allow users to pick past dates minDate: new Date(), } </script> &...
1
vote
1answer
28 views

How to load WP categories into array for autocomplete?

I am currently making a new site and i am stuck with the autocomplete for the standard search form from wordpress. Anyone knows how can i load my wordpress categories to use in this script? Its a mix ...
0
votes
1answer
18 views

Creating posts with acf_form() that has a relationship type field

I'm trying to design a form that creates a post, with the help of Advanced Custom Fields (ACF). The post has a custom post type of 'movie' and has custom fields of type 'relationship' that link to ...
0
votes
0answers
15 views

How correctly send array data from checkbox in GET

I have a simple search form in which are category checkboxes. echo '<label><input type="checkbox" value="'.$category['id'].'" name="category[]">'.$category['name'].' </label>'; ...
0
votes
0answers
23 views

Prevent malicious scripts to be submitted in post

I am building a wordpress backed web application where users will submit posts. Is there any way to prevent malicious codes from being submitted (by way of hooks or filters)?
0
votes
1answer
28 views

Postback redirect through add_action is not triggered

template: <form action="<?php echo esc_url( admin_url('admin-post.php')); ?>" method="post"> <input type="text" name="boo" id="boo" required> <input type="hidden" name="...
0
votes
0answers
5 views

Embedding Links to WPForms on a WP Page

I am not a developer but a new administrator on a website. I am trying to embed the provided WPForms link into the new WP Page I just added to this website. The link appears twice on the same page and ...
0
votes
0answers
16 views

How to link my plug-in to form parsing PDF plug-in?

I've developed a plug-in with specific (I'm mean non WordPress native) permission system, specific tables, specific tab system (each tab actually has a distinct form given that each has like hundreds ...
0
votes
1answer
10 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 ...
0
votes
0answers
12 views

Get Password protecting POST data

I added this filter add_filter( 'the_password_form', 'custom_password_form' ); 'custom_password_form' is my function, it creates a form with three input. Now I want to pass the extra inputs (...
1
vote
1answer
88 views

Use a PHP file as action for a form in a WordPress plugin, what's the correct way?

I'm developing my first "serious" WordPress plugin using Devin Vinson's plugin boiler plate generated with this generator. Now I need to use a PHP file not present in default boilerplate as action ...
0
votes
0answers
17 views

CSS not working on number input nested in a table - Custom Plugin

I am having trouble getting my css to work for a number input which is nested inside a table on my custom plugin template page. I've used wp_enqueue_style() to load my css file and it has worked well ...
0
votes
0answers
19 views

How to add or double field?

I want to add one more field like this, I copied and paste this code. It's gave me one more field, but when I edit first field and publish my post, second field is gating same inserted. <div class=...
3
votes
2answers
131 views

How to link Wordpress heartbeat to ajax form

I have a form that $_POSTs an input value, and user's ID that saves the data to the database: // frontend form <form id="form"> <input type="radio" name="location" id="name1" value="1"&...
0
votes
0answers
15 views

Check if a form has been changed after submit

I have a form where the user selects some options and some inputs then clicks on submit. After submit, the user will see the requested posts (based on how he/she filled the form). The problem is that ...
1
vote
1answer
18 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( $...
0
votes
1answer
21 views

Sort populated GravityForms list alphabetically [closed]

hope someone can help a newbie because I'm stumped on how to do this. I've got the following code in my functions.php that populates a GravityForms form "checkbox list" of products. The user selects ...
0
votes
0answers
13 views

Plugin to manage form submissions on admin panel

I am looking for a plugin, which is capable to manage form submissions on admin panel. So it should create an admin accessible interface to handle incoming requests/submissions. Administrators should ...
0
votes
0answers
49 views

Custom form in theme template displaying internal server error upon submission

I have a custom form in WordPress theme template but it is displaying internal server error upon submission. There is no error in error.log file regarding this submission. I am hosting my website on ...
0
votes
0answers
18 views

Make CSS active on Plugin admin page work on any site/page/post

I currently have a nice css file hooked into my /wordpress/wp-admin/admin.php?page=Iformbuilder_create page but I'd love for the CSS to stay on the form that's created even when used on other sites ...
0
votes
1answer
38 views

Contact Form 7 If Condition

I have used the following code to successfully redirect a form to an URL after submission using contact form 7. <add_action( 'wp_footer', 'redirect_cf7' ); function redirect_cf7() { ?> <...
1
vote
1answer
16 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 ...
0
votes
0answers
26 views

Unexpected token admin.php

when submit a form , it's seems that nothing happen and all i have to troubleshoot are these errors in the console log: Uncaught SyntaxError: Unexpected token < admin.php?page=wprm_importing:...
0
votes
0answers
8 views

Display front-end page of a custom plugin to manage forms

I've a simple question about plugins. I want to use an external php library for a plugin that I want to use to manage custom forms in wordpress. In my experience with wordpress, I've learned that I ...
0
votes
0answers
60 views

Filters posts using AJAX and then reset query with a button

I am using ajax to filter a custom post type. I want to add a "reset" button that destroys the ajax session and shows all posts instead of the filter. The filters are activated on change with query. ...
0
votes
1answer
19 views

Display Freebie Page Content only if Referrer is from Form Page

What is the best way to protect a page offering a free download after a viewer has filled out a form? I am using Contact Form 7 and Download Monitor on a Genesis theme. Some of the things that came to ...
0
votes
0answers
8 views

WordPress Form and Data Table

I want to embed a form on a WordPress page that collects some information from an individual and then submits that information to an email address (from a data table) which remains anonymous to the ...
0
votes
1answer
16 views

Edit the text location of a form

I was hoping someone might be able to help with something i imagine is very simple. I've created a form and added it to a page, however the text appears to be aligned to the left and the entry box to ...
0
votes
0answers
24 views

Using an iframe for a form help

I need to add an html form to my homepage so I have added an iframe using raw html. Everything works correctly on the desktop but when I try to use it on mobile it gets messed up. Instead of our ...
1
vote
1answer
24 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 ...
0
votes
1answer
18 views

display a message if get form is empty

I have a CPT, where i made a filter by taxonomies. Its a simple form, where users can filter by 2 taxonomies. If the filter returns no posts because its empty i want to show a message (ex. "Sorry no ...
0
votes
1answer
17 views

Scroll Form with page scrolling and add form on slider

On my Wordpress Theme i want to add a contact form which should be display on slider on right side so that when user scrolls the page the form must be scroll with the page. How to achieve this ...
0
votes
0answers
8 views

Performance Issue with Forms

i'm having massive performance Issues with a Website i'm creating. My user Profiles are quite big, at the moment about 200 fields. The loading times of the page are increasing drastically, at the ...
0
votes
2answers
19 views

How can I add a simple custom field to my plugin?

I have a custom plugin that I'm trying to edit. I didn't develop the plugin. I just need to add a textarea to it and save the contents. I have the field added, but I can't get it to save. This simply ...
0
votes
1answer
16 views

Registration form AJAX check for existing username (simple version)

I know they are already many questions related to this topic but I was looking for a simple way to make an ajax check for an existing username. So basically I have the HTML form and two functions (in ...
0
votes
0answers
25 views

Pass form inputs to page content

is it possible to pass form input to page content? In a WordPress Multisite I’d like, when a user register and create his own website, to make him compile a form with the text and the photos that will ...
0
votes
0answers
9 views

Joining two form entries

I need to develop a form that gives a user to input their company details e.g. what kind of hardware they use at their company, and I need a popup to appear (which is the second form) after they press ...
0
votes
1answer
24 views

form action wordpress and php

I have this code to submit a contact form inside a wordpress page. The problem is that I'm not experienced with the WP api and I can't find a simple way to submit the form. Can anyone help me? I was ...
1
vote
1answer
67 views

jQuery Ajax passing empty parameters to my function?

I'm trying to do a simple form submit with ajax (so page won't refresh) functions.php add_action('wp_ajax_send_projectmessage', 'send_projectmessage'); function send_projectmessage($projectid, $...
0
votes
1answer
23 views

Reading POST over admin-ajax.php

Im trying read form POST values submitted over ajax call (admin-ajax.php).The POST is prepared and submitted. Here are the server side action hooks I have in Child Theme's functions.php add_action('...