CRED plugin allows you to build front-end forms for creating and editing content. These forms can include all the fields that belong to the content and display them with your HTML styling. CRED forms also support input validation and automatic email notifications.
When you ask for help or report issues, make sure to tell us the structure and the settings of your form.
Viewing 15 topics - 4,816 through 4,830 (of 4,917 total)
Problem:
How to display cred edit form link to only logged in users.
Solution:
To conditionally display content for only logged in user, you can use views [wpv-current-user] shortcode. You can check user is logged in or not:
Problem:
How to customise the datepicker used for a date field on a CRED form.
Solution:
Custom JavaScript is required.
First you need to create a JS file which is properly enqueued.
The datepicker functionality is provided by the jQuery UI datepicker library, which is initialised on dom ready.
To make sure this has already occurred, use window.onload to run the custom code.
You can set general options which apply to all datepicker instances like so:
$.datepicker.setDefaults( {
numberOfMonths:3 // add your other
} );
Or use the datepicker api to update options for individual instances like so:
Problem:
In a CRED post form which publishes child posts, how to mark the field which selects the parent post as required.
Solution:
Edit the form and locate the shortcode used to select the parent field (with field='_wpcf_belongs_parent-slug_id') and hit the Add Post Fields button which brings up an edit dialog box where field is required can be set.
The issue here is that the CRED edit form does not show up when the user uses the CRED edit form link shortcode to access his edit form for his post.
Solution:
It turns out that in this user's particular case the issue was being caused by a plugin conflict.
The plugin in question is "BadgeOS Community Add-On", what I recommend that you do is if you are experiencing any issues is that you disable all your non-toolset plugins and check and see if the problem still continues.