Hiding Input field in widget

Ujjwal1
Tera Contributor

hi all
I need to hide "checkbox" in widget, in all condition. 

 

HTML code⬇️

 

 

<label><input type="checkbox" name="support_team" ng-model="data.support_team"> Support Team</label><br/>               

 

 

 Please suggest.

1 ACCEPTED SOLUTION

Aditya02
Tera Guru

Hi @Ujjwal1 ,

 

You can hide an element in the HTML by just setting Display as None. For this you have to add one Css style. 

Try using this once, You can achieve you thing:

 

<label><input type="checkbox" name="support_team" ng-model="data.support_team" style="display: none;"> Support Team</label><br/>

 

If you think my answer solves your problem, then give me a like and mark this as correct answer.

 

Thanks, 

Aditya

View solution in original post

2 REPLIES 2

Aditya02
Tera Guru

Hi @Ujjwal1 ,

 

You can hide an element in the HTML by just setting Display as None. For this you have to add one Css style. 

Try using this once, You can achieve you thing:

 

<label><input type="checkbox" name="support_team" ng-model="data.support_team" style="display: none;"> Support Team</label><br/>

 

If you think my answer solves your problem, then give me a like and mark this as correct answer.

 

Thanks, 

Aditya

Anirudh Pathak
Mega Sage

Hi @Ujjwal1 ,

Please try below code - 

Server Side : 

data.hideBox = true;

HTML :

<label><input ng-hide="data.hideBox" type="checkbox" name="support_team" ng-model="data.support_team"> Support Team</label><br/>