Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
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