Feb 23, 2021 10:30 am
How to add conditional field in wpDiscuz (field visibility depends on other field value)
Thanks
4 Replies
Feb 23, 2021 3:15 pm
I want to get field id in order to make other field display depending on first field value like this :
$value = get_comment_meta( $comment_id, 'nbr_famille-0_0', true );
if($value == '8'){ ?>
<style>#age_8-0_0{
display:none !important;
}</style>
<?php }
//if the family number (which has the idnbr_famille-0_0) is 8 so field with id age_8-0_0 display none