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
25 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
13 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
17 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
7 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
8 views

wordpress contact form entries displayed on another wordpress

does anyone know how to embed a form on a wordpress website, but view the submitted entries in another site? Any recommended plugings that allows to do that? Thanks
0
votes
0answers
12 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
14 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
23 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
22 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
17 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
13 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
16 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
12 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 ...
-1
votes
0answers
13 views

Wordpress search without exactly word

I'm trying to modify the wordpress searcher to do this functionality: I want the normal function of wordpress search but I want one thing more. I want that it will be possible to search non-exactly ...
0
votes
0answers
23 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
17 views

Can i save forms data to database and generate reports with wordpress? [closed]

Is there a way to save all the forms data into the database and the to reuse that data and make some different types of reports? Is there any amazing plugin that you guys&girls can advise if you'...
0
votes
0answers
9 views

Display multiple products in single product woocommerce [closed]

Thank you in advance I have website for selling clothes, I want in page single product display other products as checkbox. For example : For Hoodie product : I want to add t-shirt and shoes ...
0
votes
1answer
22 views

Get form values into another form fields [closed]

I’m a newbie for WordPress. I want to get form fields values into another form. 2nd form in a pop view. Could you please tell how can I do it with WordPress. Thanks
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
23 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
33 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
21 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('...
0
votes
0answers
12 views

link user to post, when its submitted via online form

Users can submit Events via a Custom Post Type (Form is made with the qform Plugin) - If the user does not have an account, an account is created during submitting the form. If he is logged-in already,...
0
votes
0answers
31 views

I want implement OTP SMS mobile verification in Wordpress with Ajax

I want implement OTP SMS mobile verification in Wordpress I want when send SMS to user, change view to another form and get user SMS My problem is when run ajax code it send SMS, but dosnt work ...
0
votes
1answer
15 views

show custom value from frontend form in a post (custom post type)

I am using a frontend form to create posts in a custom post type (Everything is working fine excepts custom fields). I tried for hours to figure out, how i can show custom field value from the form in ...
0
votes
1answer
18 views

Using $wpdb | checking entered email against existing emails in db

Without ranting too much, here is my snippet: if (empty($_POST["email"])) { $emailErr = "Email is required"; } else { $email = test_input($_POST["email"]); // check if e-mail address is ...
0
votes
1answer
10 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 ...
0
votes
1answer
74 views

How to save contact form 7 data in Custom Post Types (CPT) [closed]

I want to store the data of contact form 7 (CF7) in a custom-post-types (CPT). There are several plugins like: https://de.wordpress.org/plugins/cf7-responses/ https://de.wordpress.org/plugins/cf7-...
0
votes
1answer
17 views

Integrate WordPress Ninja form plugin with Zoho form [closed]

I am using Ninja form in my WordPress website. And I have a similar form created in Zoho. I have a requirement where I have to fetch and display the Ninja form submission to the Zoho form every time a ...
0
votes
2answers
28 views

Bad Request when adding new post via ajax form

I am trying to insert a new post with a simple ajax form in a wordpress plugin. Visitors will use this form to create posts from frontend. My form is like this: <script> jQuery( document )....
0
votes
0answers
11 views

Let user select pages from a multiple select box and only display script on header of those pages

I'm writing a plugin that adds schema to the header. So far it is adding it site-wide. How would I add a multiple select box within plugin settings that lists all the site pages? Whichever pages are ...
0
votes
0answers
8 views

Stylized text copying from blog post

the problem is: I need to let users copy text (with specific styling and easy to highlight) from my wordpress blog page to another webpage. For example - I prepare and format certain text and let ...
0
votes
1answer
14 views

Back button not working after input / search submit

Thanks to Sally CJ I am super close to having everything figured out with an autocomplete search I am building out. The only problem I am having is the back button is not working after the user is ...
0
votes
0answers
14 views

How can I make this custom field CF7 required?

I have this code for my custom field: add_action( 'wpcf7_init', 'custom_views_post_title' ); function custom_views_post_title() { wpcf7_add_shortcode( 'custom_views_post_title', '...
0
votes
2answers
26 views

How do I stop my form from adding code to current page URL instead of re-directing. Been stuck for days

I am currently setting up a WordPress website and everything is going fine except for one issue I simply can't figure out. So basically I have a booking form on my website that allows people to ...
-1
votes
1answer
40 views

How To Change Url Doing Some Changes in Search Form

How can url show like i want or prefix text in search query form class="search" action="/search"> input type="hidden" name="type" value="product" /> input type="text" placeholder="Search ...
0
votes
0answers
12 views

Creating a form and submitting?

First, I don't know what I am doing and learning. We use Amazon Workspaces on zero clients, which doesn't offer a user ability to restart their machine. The AWS console allows me to reboot users ...
0
votes
0answers
9 views

Send registration mail to new user from custom build form

I am using a custom build form connected through an API which has an email field as last field. After that the user presses on a button and the preferences are communicated with the other service. ...
0
votes
1answer
17 views

I am trying to add checkbox for anonymous post on form post

i wanna add new feature on my wordpress site post as anonymously i tried to customize the form field and add a new field and the database but there are too files and instruction to store form data in ...
1
vote
1answer
21 views

Databases - Submitting data from inputs to database [closed]

I am attempting to submit data to a table I have created within my database. For sanity sake I have called it 'wp_email_subscribers'. Including the wp_ prefix. I know there is a way to insert data ...
0
votes
1answer
37 views

Help posting values to DB on submit using $wpdb->query

I am not new to WordPress but this is the first time I have tried to use the $wpdb. I have set up a form: <form method="post" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']);?>"...
0
votes
0answers
17 views

Sending Form data as Attachment

on my wordpress site i have a form where users can register to our club. Now the software we are using to handle all the club members allows to import a new member via a csv file. Now my thoughts ...
0
votes
0answers
46 views

How to pass data to shortcode via form

I have custom post type called "forms" and has a sub-menu page which has form, to add a name add_action('admin_menu', 'form_builder_add'); function form_builder_add() { //create new top-level ...
0
votes
1answer
90 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....
0
votes
0answers
24 views

Issue developing an AJAX form with Wordpress

I am trying to develop a custom form working with AJAX. But there is no way to work because everytime it gives me the below message: "POST http://wellness4yourself-com.stackstaging.com/wp-admin/...
0
votes
1answer
24 views

How to create front-end (editable) Wordpress user profile pages?

So I am using Gravity Forms to create registration and login forms. But after the user logs in, I want them to be able to see a custom front-end profile page instead of the default Wordpress user ...
0
votes
0answers
24 views

Updating the database after parsing CSV document

Im trying to update the database based in a CSV document, if the first value in the CVS row is equal or greater than 300, it should update the database, and so on....but I cant get it to work, the ...