USP Pro makes it easy to create unlimited custom forms for the front-end of your site. Use the USP Form Builder and USP Quicktags to assemble the perfect form in minutes. Once published, USP Forms may be displayed anywhere in your theme using the USP Widget, shortcodes, or template tags. USP Forms may include text, markup, shortcodes, images, and anything that a normal WP Post can handle. USP Forms may include any type of input field (e.g., input, textarea, radio, select, password, email). Further, each form field may be customized via Quicktag or custom field, giving you full control over labels, placeholders, required attributes, and much more.
Browse support forums for USP Pro »
Forum : Customizing Forms
There are 83 posts in this forum.
I am planning to create some email contact forms for my users, but would like to have the “From field” come directly from their emails, not the WP admin email. Is this possible?
Yes, thanks to your idea, I’ve added this feature to the soon-to-be-released v1.3 of USP Pro. The update should be available sometime tomorrow. Thank you :)
Oh awesome! :)
Is there a way to get notifications when there are responses to our comments? I totally missed your response here. Didn’t see it until I went back to post another question! :)
Oh good call! I usually install the “Subscribe to Comments” plugin for that, but seemed to have overlooked it for this site. Will get it set up tomorrow :)
Hi again. I poked around a bit and it looks like it was just an old plugin getting in the way. False alarm!
Thanks for the plugin, Jeff!
I have a few more questions about the contact form. Hope you don’t mind. I am finding the docs a little hard to follow.
#1 Can I create more than one contact form?
Say I’d like to create an email form for bug reports, and another email form for general inquiries. How do I go about this? When I create a new form, it seems to only create a “submit a post” form and not an email form.
#2 How do I add extra text fields in my contact form?
I would like to create extra text fields in my contact form, but this info doesn’t show up in the email. Not sure what I’m doing wrong but here’s an outline:
Do let me know if I can provide more info.
This turned out to be a bug that’s fixed in version 1.3, which will be available later tonight. Once the update hits, the following information should help:
Yes, first visit Admin Settings > Contact Form > “Enable Contact Form”. Then enter the form id or slug that you want to use as a contact form. Multiple forms may be specified using comma-separated slugs/ids.
The issue described here is also related to the now-fixed bug. After updating USP Pro to version 1.3 or better, custom fields may be included as normal with any contact form.
Thank you for reporting the issue!
I created my first form and it won’t list out the categories.
Here is the short code I’m using and it only shows the uncategorized in the select box:
For the category field, make sure that you have enabled the categories for use in the plugin settings under General > Category Settings > “Post Categories”. Once the categories are selected from there, they will be available for use via shortcode as you’ve done.
awesome, this answered my question :)
Where can I change the maximum allowed characters for the content field?
Just add the max attribute to the shortcode, like so:
Also be sure to also include any other attributes that you may be using.
I’m creating a form for users to submit content to my site. As part of the form, I need the user to be able to choose to give consent for their post to be used outside of the site. A sort of ‘opt-in’ or ‘opt-out’.
I am trying to create a custom field for this, with either a checkbox or radio button that determines a yes or no value. How can I make something like this happen?
An agreement box isn’t included, but may be added directly to any form. Here is a good tutorial that should give you some ideas. Or a quick search for “jquery agree to terms” should provide more options.
Let me know if there any questions about what goes where, glad to help.
How do I include a custom textarea in the form? I see the content shortcode for adding post content field, but for additional textareas via custom fields, how to do it? Thank you.
To include a custom
<textarea>in any USP Form, first define a custom field such as:
..and then include it by adding its shortcode to the form, like so:
Note that the “1” in this example refers to the custom field, and the “123” refers to the form ID.
How do I make the post content field a rich text field?
When displaying the content field using the shortcode, the rich-text editor may be enabled by including
richtext="on"attribute to the shortcode. Learn more »
I have a plugin that allows me to use shortcodes to call the user’s data. So I want to have some of the form items prefilled for them:
How would I do this with USP Pro? Thank you.
My pleasure, glad to help.
Give this a try should do the trick:
..add directly to the form and customize as needed. Assuming the other plugin’s shortcodes work in custom post types, everything should work great.
Hello and thanks for this plugin… I really like it. The problem I am having is I have two different forms. I want to show several categories on each form but not all. All of the categories are checked in the General settings. When I input a shortcode like this –
[usp_category cats="184,185,186" multiple="no"]all categories still show up instead of just the individual categories I would like available on that form.. I probably just have something set wrong to make it happen, but I would really appreciate any help you could give. Thank you..
Hi Dana, I’m glad you like the plugin :) For the categories, I’ve added an attribute to the
[usp_category]shortcode that enables the exclusion of any specific categories by ID. That will enable the configuration you describe. The updated plugin should be available today or tomorrow. Thank you for the feedback.
Wow Jeff, that is awesome… Thank You so much… Best customer service ever!
Jeff, I have created a USP form to be used to submit a single video with each post but have not figured out to enable the upload. Please point me to instructions. Thank you.
Try this, just create a new form and add these shortcodes:
types, just replace those examples with the allowed video extensions. Note that the same extensions used here must also be specified in the Uploads setting for allowed file types.
Thanks for the rapid and clear response!
Does this mean my registered users can only upload videos from their computers or can they also enter URLs when they find one online?
With the current version, 1.6, users can submit videos from their own machines (using the previous method), or they can include a supported video URL on its own line in the main content field (i.e., WP’s oEmbed method). Uploading videos via URL currently is not supported, but it’s on the list for a next update.
Thanks for the help and “heads-up” on your priorities!
I’m happily using USP Pro but I ran into a problem with custom taxonomies.
I created an input for my custom taxonomy called ‘submission_tag’ and I let the user create the tags like so:
This is working but if a user types in a tag, that already exists and submits the form, it breaks:
The custom post type post is created, but without the custom taxonomy though. I basically need a field like the normal tag field but for a custom taxonomy. Is this possible?
Thanks for reporting, Martin. This bug is fixed in the latest version, USP Pro v2.2 :)
How do I active my reCAPTCHA Public keys its says “To enable, enter your Public Key and Private Key” I don’t have a private key, what’s going on?
You need to sign up for an account w/ Google: https://www.google.com/recaptcha/intro/index.html
Then you can get the keys and enable the captcha.
We’ve created custom fields. Is it possible to re-use those custom fields on multiple forms? I know it’s got the form ID assigned…
Hi Stanfield, glad to help. Actually custom fields are valid only on the form for which they are defined.
Thanks for the quick reply, Jeff. Before you replied, I added some custom fields defined in one form to a different form and submitted a test and it seemed to work…please let me know if I shouldn’t do this, though.
Honestly it might or even should work, but it’s just not something that I’ve tested. So can’t recommend officially. Best to keep custom fields unique to each form, is my best recommendation.
I am using a USP Pro.. is there a way to make the “Submit Post” button larger?
Glad to help. There isn’t a setting or shortcode/attribute to change the size, but just about anything on any web page can be customized with a bit of CSS. For example, you can add the following CSS to make the button larger:
How do you get the shortcode buttons on the editor like is shown in the videos?
One of those should do the trick, let me know how it goes.
none worked. What editor are you using?
It works in all browsers. It’s a common issue due to things like browser caching and conflicts with other plugins. If none of the above work, you can try troubleshooting your plugins. Would be glad to provide a guide if you are unfamiliar with basic troubleshooting steps.
Got it working. Thanks
Awesome, glad you got it.
Right now I have one category enabled. I’d really like to be able to have the category assigned to posts from this form be one specific category. I’d prefer the field wasn’t even on the form, but the problem is that I want other forms in future to be able to post to other categories…if that makes sense? The free version seemed to have the ability to hide that field, and set it in the form, but I haven’t been able to find the instructions on how to do that with Pro. Thanks!
You can set any form to submit posts to specific category using a hidden field. Here is a quick guide.
So instead of using the shortcode/quicktag to add the USP Category field, you just add the hidden field instead.
Hi Jeff. Love your plugin. I am setting up a form that collects and displays a user’s social media accounts and website url via custom fields. Is there a way to prevent a user from adding http to the front of their submitted link? Thank you.
Thank you for the reply. On to plan B!
Hello my name is Daniel and i made good progress with this plugin and a lot of search for alternatives with css js and jquerry, even though i am not a developer.
I would like the text entry for custom field 24 (person’s name) to be saved as one of the radio options:
The code ended up not working, I have been thinking about other ways to do this, my intention with choosing the button is for the person to choose between anonymity or divulging their own name.
I thank you in advance, I am not very fluent with code but I keep looking for solutions.
Thank you for this great plugin! I have a question about duplicate content. There are settings you can check that require both the post content and titles to be unique, but I don’t see an option for requiring unique URLs in the post submission. Is there an option for this that I’m missing? I searched through the tutorials and forum but couldn’t find anything. Thanks so much!
Hi Beeb, it’s a great question. Actually WordPress handles all the permalink creation stuff, and always makes sure that there are no duplicates. Try submitting a duplicate title, the resulting URL should have a number appended.
Thanks so much for your reply! To clarify, what I mean was outbound URLs that are submitted within the post content using the “URL” field of the form. I’ve had a few submissions come in where the user wrote a unique title and content, but provided the same outbound URL linked within the content and I was wondering if there’s a way to require a unique URL to be input? Thanks again!
Ah ok, thanks for clarifying. No sorry, the plugin does not provide any filters that check for unique URLs. Interesting idea though!
Is there a limit to the number of characters in a custom field entry? I’m using textarea but WordPress seems to be truncating my entries at 256 characters after I submit the form. I have USP Pro Settings at max=0 but I think that setting only applies to content and excerpt.
I attempted to add more characters directly into the cpt post after submitting but found that More Fields has a hard stop at 256 characters.
Is there a setting that can override the custom field character limitation?
Not that I know of. What shortcode are you using for the field, so I can take a closer look.
Here’s the form, with some extraneous parts like title removed. I have the same code for 7 different fields with the same format.
(I’ve included the first two lines. The custom post type is named “review” and I have a function that pulls the ID of the associated story.)
[usp_custom_field form=”3676″ id=”1″]
[usp_custom_field form=”3676″ id=”1″]
data-required#false|name#plot|for#plot|label#Plot Review|label_custom#class=”review_field_label”|field#textarea|placeholder#How do you feel the author created and developed the plot
I’m using the following for viewing the plot field (though if I view the post through the Admin panel, I still can’t add any additional characters):
Plot Review: [usp_meta meta=”plot”]
Okay thanks. So which shortcode are you using for the field that is getting truncated to 256 characters? (Just one field, I don’t need the whole form, thanks.)
Somehow deleted more than I intended. Here’s the form:
[usp_title label=”Review Title” placeholder=”Your impression of the story (in 10 words or less)”]
[usp_custom_field form=”3676″ id=”1″]
[usp_content label=”Overall Impression” placeholder=”How do you feel about the overall story, with things you liked best and recommendation for improvement (if any).” required=”yes”]
Which field is truncating to 256 characters is all I need, thanks Brian.
Ah, custom field named plot, id=”1″
So this then:
[usp_custom_field form="3676" id="1"] data-required#false|name#plot|for#plot|label#Plot Review|label_custom#class="review_field_label"|field#textarea|placeholder#How do you feel the author created and developed the plot
Is that correct?
Yes, I have the shortcode in the form, then the description in the Custom Fields area.
Ok thanks, will investigate and see if I an figure it out. In the meantime, you may want to check/verify that the form
idattributes all match up with the actual form you are working with. That’s usually what trips people up, just getting the form IDs correct.
I tested the custom field and there are no limits to max number of characters. On default WordPress, I am able to send 300, 3000, and even 30,000 characters per custom field.
If that is not happening in any particular case, there must be something else interfering with normal functionality.
Is there a way to allow users both to choose existing tags without having type them from memory and to add new one(s)? This could be similar to how WordPress does on the back end or a combo box (dropdown plus text input).
I know that if the tags field is text input, the plugin will check to see if the tag already exists, but not showing the existing tags means that users are more likely to create unnecessary ones that are simply synonyms of other tags, with negative ramifications for searching by tag later.
It’s not a current feature but I think it’s a great idea. I’ll add to the list and see about implementing something in a future update. Thank you for the feedback, Margaret.
I’m trying to create a post submit form for a custom post type that has its own categories than the standard post type.
On my form, of course, it’s just pulling in the default categories for posts I’ve set up in the plugin.
Is there any way to get the form to use all of the categories for its post type — or do I need to just set up the categories for that form by category id?
Never mind…I found the taxonomy shortcode and it worked.
…but if the custom post type has its own tags, is there a way to use the text input option. I’ve tried it with the taxonomy shortcode and that does not work. But if I use the standard tags shortcode, it does not add the tags as they are for the standard post type.
Again, never mind. I added regular
post_tagsupport to the custom post type so the text input works for what I’m trying to do. Thanks
I can’t find my previous post concerning my issue with the demo contact form. So I will re-submit my request for assistance.
How do I get rid of the demo contact form code that is displaying just above my SUBMIT button please?
This URL is germane: https://www.tibesarfamilytree.com/contact/
Apologies for losing the comment from yesterday. We had a site issue and had to restore from backup. The backup was from just before the time you left your comment.
To answer your question: that happens when the angle bracket characters
>are encoded, which happens when using the rich-text editor. It’s very important when working with code to use the plain-text editor. Otherwise you get character encoding and other issues.
So the solution in this case is to delete the wrongly encoded hidden input from your form:
Then save changes.
Now to make it a contact form, you need to re-add the hidden field, but without encoding the brackets. So switch to the plain-text editor, and then copy the same line from the make a contact form tutorial (it’s the same line but encoded correctly). That will add the line as actual HTML which is required for contact forms. And because it’s correctly encoded this time, it won’t display on the front end but rather will remain hidden.
No problem Jeff!
Anyways, I followed your instructions to a “T”, and still that input name code appeared.
So I tried BBEdit (editor for the Mac and retyped the entire code) – nope didn’t work.
So I tried the MacBook’s Text/Edit editor and retyped the entire code – nope didn’t work.
I deleted the form and then retyped the form from scratch – nope didn’t work.
I finally uninstalled the plugin. Then I reinstalled the plugin and deleted the old Contact Form. I regenerated a brand new Contact Form Demo and wala, it works now.
By the way, I installed the USP Pro plugin on a new site this morning, and didn’t have any problem with creating and testing the Contact form.
Thank you for all the help and a G R E A T plugin Jeff!
You are very welcome, Marcus.
It sounds like some wires got crossed somewhere, glad you got it sorted in any case.
Cheers and best to your and your project :)
Purchased Pro last week and still on the learning curve even though so much of it is fairly intuitive.
I am using Posts as a generator for listing Current Events at our high school. What I DO NOT need, is comments on the posts. They are strictly for information. I saw a closed thread from a couple years ago about adding a check box yes/no to enable or disable comments. I just need to know how, and where, to enter the code that was included as the final post to that thread. (Support » Plugin: User Submitted Posts » enable/disable Comment in USP posts)
This looks to be like a great plugin AND at a reasonable price.
( I love the Star Trek reference on the Submit button.)
Glad to help. Here is a guide that explains how to add a disable comments checkbox. That will give the user a choice whether to enable or disable comments. Alternately if you want to just disable all comments, you can do so via the WP General settings > Discussion. ( + Cheers to Star Trek :)
Of course, Discussion settings was the only place I didn’t think to look. When it failed the first test and still allowed comments, I realized this setting must be made for each Site (we’re multi-site) and not does not work at a domain level.
Hello I am trying to create custom custom post types. I watched the tutorial and it is great. But the “Custom Fields” input boxes section with “name” & “value” inputs is not showing up on my form page at all. Is there a setting I am supposed to be turning on to see that?
Hey Jon, check out this post should help.