Forum Replies Created
-
AuthorPosts
-
Tan Nguyen
ParticipantOk man, sorry, in my demo, I use 'customer' as post type but in your site, you're using 'p52-contact' as post type so $customer variable return empty, can you please change 'customer' to 'p52-contact'?
Tan Nguyen
ParticipantCan you show me that error?
Tan Nguyen
ParticipantHi Maurice,
Thanks for using our plugins, to display field on the frontend, you can follow this guide.
Have a nice day man ๐
Tan Nguyen
Tan Nguyen
ParticipantHi webidia,
Sorry for long silence, I have some trouble with me health, I've just released the patch, can you able to update?
Btw, due to divider field in haven't #ID selector so we cannot hide divider right now, we'll update Meta Box plugin shortly. You can use CSS to add horizontal row now to work around, we're sorry about this convenience.
Thank you and have a nice day man ๐
Tan Nguyen
ParticipantHi carassius,
Thanks for using Conditional Logic
As your requested, I've created a snippet with comments so you can see and use in your project. Basically, I use a 'post' field to display all customers and create a phone field which store customer phone and a set of phone fields equal to num of customers which has default value inside, when user post data, the visible phone field will replace default phone field. Have fun ๐
Tan Nguyen
ParticipantHi webidia,
Thanks for downloading Conditional Logic and reporting that bug, we've just released new version, can you please update?
For
file_advancedandimage_advanced, it returns num of uploaded files so you can define conditional logic like so:// Visible when file_advanced is empty 'visible' => array('file_advanced', 0) // Or hidden when image_advanced is exists at least 2 images 'visible' => array('image_advanced', '>=', 2)Best regards,
Tan Nguyen
Tan Nguyen
ParticipantHi Sinusite,
Thanks again for your question you're welcome to post any question about our Meta Box so please don't hesitate to tell me if you have problems ๐
As noted in documentation:
"This extension shows/hides meta boxes when page loads or after saving. It does not include Javascript code to toggle meta boxes immediately when conditions changed."The different between Conditional Logic and Include / Exclude basically is:
- Conditional Logic run when field values change immediately while Include/Exclude run conditions on page load.
- Conditional Logic can hide meta box, fields or any DOM element while Include/Exclude only works with meta box.
- Conditional Logic only hide elements, the element still exists while Include/Exclude can totally remove element from the page.
Best regards
Tan Nguyen
Tan Nguyen
ParticipantHi Piet,
I've just released an update, have a nice day man and thanks again for your contribution!
Best regards
Tan Nguyen
Tan Nguyen
ParticipantHi Piet,
Thanks for installing and reporting that bug, you'll get a minor update within next 24 hours. Whilst waiting for that patch, you can try to disable Debugging in WordPress
Thanks and have a nice day,
Tan
Tan Nguyen
ParticipantHi Sinusite,
Great question, I will implement update to get multiple field hide with same condition, currently, this version doesn't support but you can try this snippet for shorter and easier to update. Basically, assign hidden conditions to a variable called
$hidden_conditionand attach that condition to all of your meta boxes:$hidden_condition = ['hidden' => ['parent_id', '>', 0]]; foreach ( ['tagsdiv-maitreo', 'postimagediv', 'sbg_box'] as $metabox ) { $conditions[$metabox] = $hidden_condition; }Best Regards
Tan Nguyen
ParticipantHi bravebits,
Sorry for the long silence and thanks for downloading and reporting about that bug. We've just released an update which wiped out that bug and you can start using Conditional Logic with
image_advancedfield.The syntax is the same as other field, but just keep in mind that image advanced field will returns num of image, so field empty that means "0" image selected.
Example:
'hidden' => ['image_advanced_field_id', 0]or
'visible' => ['image_advanced_field_id', '!=', 0]Best regards
Tan Nguyen
Tan Nguyen
ParticipantHi Sam,
You can update only Conditional Logic plugin for fix that bug, then you can use Select Advanced.
Tan Nguyen
ParticipantHi syswperu,
Thanks for downloading MB Builder,
Can you share me some of your site information?
- What theme are you using?
- Did it supports page templates?
- Plus: Can you please share your site dashboard login and FTP information to [email protected] so we can check it faster.Best regards
Tan Nguyen
Tan Nguyen
ParticipantAlso, we've released 1.0.4 and you can use simplified syntax like example above, have a nice day and don't hesitate to tell us if you have any problem ๐
Tan Nguyen
ParticipantSorry, it's about new bug doesn't works with Select and Select Advanced, we've just released a patch. Can you please redownload Core Extension Bundle on the website and update?
Thanks for reporting and Best regards
-
AuthorPosts