I am trying to: build a cpt search form, including the Blend custom field.
Link to a page where the issue can be seen: hidden link
Please use user/pw as shown at URL to admin.
I expected to see: something like hidden link
Instead, I got: Blend field not checked with default (Όχι)
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Hello. Thank you for contacting the Toolset support.
Well - I try to use the authorization access details you shared with us but unfortunately its not working.
Could you please authorization access once again and send it to me.
I have set the next reply to private which means only you and I have access to it.
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Well - I've added the following JS code to your view's JS box:
var default_value = $.getQuery('wpv-wpcf-blend');
if(default_value == false){
jQuery("input[name='wpv-wpcf-blend']:first").attr('checked', true);
}
(function($){
$.getQuery = function( query ) {
query = query.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var expr = "[\\?&]"+query+"=([^&#]*)";
var regex = new RegExp( expr );
var results = regex.exec( window.location.href );
if( results !== null ) {
return results[1];
return decodeURIComponent(results[1].replace(/\+/g, " "));
} else {
return false;
}
};
})(jQuery);
I can see now default radio button is selected.
Wow, all this code for a default radio to be checked...?
It works though, thanks a lot Minesh.
I need to know, is this a bug?
Best regards,
Kostas
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Yes, it seems to be. I will report it as per the process. But for now, you can use the workaround I shared.
My issue is resolved now. Thank you Minesh!
Best regards,
Kostas
Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
Well - I confirm that the default option setting does not respected when you add the same field as filter is not a bug.
It will be treated as a brand new feature request, please feel free to submit the feature request using the following link:
=> https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/