Gavin
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Content Template – media gallery empty
Started by: Gavin in: Toolset Professional Support |
2 | 8 | 5 years, 2 months ago | ||
Delete child posts when parent is deleted
Started by: Gavin in: Toolset Professional Support |
2 | 9 | 5 years, 3 months ago | ||
Frontend child form, after submission, redirect to parent post
Started by: Gavin in: Toolset Professional Support |
2 | 3 | 5 years, 3 months ago | ||
Conflict between Types 3.2.5 and Oxygen 2.1.2
Started by: Gavin in: Toolset Professional Support |
2 | 3 | 5 years, 9 months ago | ||
Phone field for Toolset Forms is not
Started by: Gavin in: Toolset Professional Support |
2 | 4 | 5 years, 9 months ago | ||
wpv-item: adding a class
Started by: Gavin in: Toolset Professional Support |
2 | 11 | 6 years, 4 months ago | ||
Character Count – counting Up – CRED and Types Fields
Started by: Gavin
in: Toolset Professional Support
Problem: Solution: |
2 | 2 | 6 years, 9 months ago | ||
Multiple Datepickers – Date Range Restriction
Started by: Gavin
in: Toolset Professional Support
Problem: I've successfully implemented the following javascript for a single date field entry to only allow dates to be selected within the next 90 days, and not before 'Today': jQuery(window).bind("load", function() { jQuery('[id^="cred_form_163_1-textfield"]').datepicker('option',{minDate: 0,maxDate: 90}); }); This also works for the 'first' field of a multiple date field, but I cannot find the id or class to apply the script to the second, third, etc, multiple instances of date fields Solution: You can use jQuery('.js-wpt-date[name^="wpcf-repeat-event-start-date-time"]').last() to locate the new datepicker. For example, below JS codes: jQuery(document).on( "toolset_repetitive_field_added", function() { jQuery('.js-wpt-date[name^="wpcf-repeat-event-start-date-time"]').last().datepicker('option',{minDate: 0,maxDate: 90}); }); Relevant Documentation: |
2 | 7 | 6 years, 10 months ago | ||
Site reload shows bootstrap styling briefly
Started by: Gavin in: Toolset Professional Support |
2 | 8 | 7 years ago | ||
List events by Day
Started by: Gavin in: Toolset Professional Support |
2 | 2 | 7 years, 2 months ago | ||
How do I add a character counter
Started by: Gavin
in: Toolset Professional Support
Problem: I would like to add a character counter that counts down the number of characters that can be added in a CRED input field. Solution: 1. Edit your CRED form. Add this code to the editor area, right after the text input area you want to count: <div id="chars">10</div> 2. Then just underneath the editor panel there is an attached JS editor. Twirl that open, then paste in the code from the other ticket with a few minor changes: (function($) { $.fn.extend( { limiter: function(limit, elem) { $(this).on("keyup focus", function() { setCount(this, elem); }); function setCount(src, elem) { var chars = src.value.length; if (chars > limit) { src.value = src.value.substr(0, limit); chars = limit; } elem.html( limit - chars ); } setCount($(this)[0], elem); } }); })(jQuery); jQuery(document).on('cred_form_ready', function(){ var elem = jQuery("#chars"); jQuery('textarea[name="post_excerpt"]').limiter(10, elem); }); 3. Finally, modify this part of the code you just pasted in: jQuery('textarea[name="post_excerpt"]').limiter(10, elem); The textarea depends on whether your input field is a single line or a multiline or WYSIWYG. If it's a simple single line, you can replace textarea with input. 4. Save your View and check it out on your live site. |
3 | 7 | 7 years, 4 months ago |