|
|
Critical error trying to edit content template
Started by: OliverJ8211
in: Toolset Professional Support
Quick solution available
|
|
2 |
6 |
4 years, 7 months ago
-
|
|
|
Need to Filter wpv-control-postmeta to only show a drop down realated to parent
Started by: cameronJ-3
in: Toolset Professional Support
Quick solution available
Problem:
How to filter search dropdown items limited to the repeatable field?
Solution:
Toolset does not have that filter feature. You can use the workaround below:
- Add a view that lists the repeatable field items and add them as an HTML hidden field.
- Add the custom JS below to the content template that you use to replace the content of the search dropdown with the hidden fields:
[php]
jQuery(document).ready(function() {
var theTracks = '';
jQuery('#track-options > input').each(function(){
theTracks += ''
});
jQuery('select[name="wpv-wpcf-track-name"]').html(theTracks);
});
[/php]
|
|
2 |
10 |
4 years, 7 months ago
-
|