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 - 2,611 through 2,625 (of 2,637 total)
Problem:
With CRED form - input with html tags is not saved
Solution:
To allow the HTML tags with CRED input fields you need to set
Content filter settings for CRED and check mark all the tags you want to allow.
Problem: I have a CRED form set up that allows users to update a post's status. The User can select a status that is different from the form's post status settings. Incorrect email notifications are being sent when the email status is different from the form's post status settings.
Solution: Change the form's post status settings to "Keep original status" to prevent these unnecessary draft emails from being sent.
Problem: I would like to not allow authors to edit pending or published posts with CRED.
Solution: Use conditional HTML that tests the post status of the post being edited by CRED. If using a URL parameter to supply the post ID, you can use the following custom shortcode:
Go to Toolset > Settings > Frontend Content and add "status-by-id-in-url" in third party shortcode arguments, then you can use the shortcode like this:
[wpv-conditional if="( '[status-by-id-in-url]' eq 'publish' ) OR ( '[status-by-id-in-url]' eq 'pending' )" evaluate="false"]
This is not pending or published
[/wpv-conditional]
Problem: I would like to use a custom function in a conditional shortcode inside a CRED form.
Solution: Write your custom function in PHP, then register the function in Toolset > Settings > Frontend Content > Functions inside conditional evaluations. Then you can use the custom function inside a conditional HTML clause.
Problem:
Delete the files uploaded using CRED forms
Solution:
You can not delete the uploaded file. This is a drawback as there is no way to identify whether or not those media files have been used elsewhere on the site at that point. For now, these Media Library items will remain stored in your site files.
I need to translate "Use my location" message on cred form, when i use an address field with google map. I don´t use WPML. Can i use a code in functions.php to translate
Solution:
You can translate the "Use my location" message with WordPress built-in filter hook gettext, for example, add below codes into your theme file functions.php:
add_filter( 'gettext', 'my_text_func', 20, 3 );
/**
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
*/
function my_text_func( $translated_text, $text, $domain ) {
if($text == 'Use my location' && $domain = 'toolset-maps'){
$translated_text = "Use my location in your language";
}
return $translated_text;
}
Problem: I have an Edit Post CRED form that includes a cred_field shortcode that displays a "select" custom field. I would like to always set the value of the field to a specific option.
Solution: Use the "value" attribute to specify the option value you want to select by default.
[cred_field field='status' post='product' value='3' urlparam='' select_text='--- not set ---' class='form-control' output='bootstrap']