wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

Conditional field


rokaya
Posts: 3
Topic starter
(@rokaya)
New Member
Joined: 3 days ago

How to add conditional field in wpDiscuz (field visibility depends on other field value)

 

Thanks

4 Replies
Asti
Posts: 2144
 Asti
Support
(@asti)
Support member
Joined: 3 years ago

@rokaya,

We're really sorry, but wpDiscuz doesn't have such a feature. 

Reply
2 Replies
rokaya
(@rokaya)
Joined: 3 days ago

New Member
Posts: 3

@asti Thanks a lot 

Just other question i have installed upload media add ons but i can not see attach file field in the form 

Reply
Asti
 Asti
Support
(@asti)
Joined: 3 years ago

Support member
Posts: 2144

@rokaya,

For further support, we'll need to know if you have installed the wpDiscuz Media Uploader addon or not, the version of the wpDiscuz and/or the wpDiscuz Media Uploader plugins.

Reply
rokaya
Posts: 3
Topic starter
(@rokaya)
New Member
Joined: 3 days ago

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

Reply
Share: