Hide a Button in portal

BSP
Tera Contributor

Hi all,

 

i have a "Submit feedback" button in portal which helps to open a survey & submit a survey in portal, so once we submit a survey the "Submit feedback" button should not visible till 14 days. it should disable after 14 days again that button should visible.

any help appreciated

 

<!--Feedback button-->
<div id="button-container">
<a ng-if="c.data.display">
<button class="btn btn-{{c.options.button_color}}"
ng-class="{'left': alignLeft, 'right': alignRight}"
id="feedback-button"
ng-click="c.openModal(c.options.feedback_method,'lg')">
<i class="fa fa-comment"></i>
<span id="button-text">{{buttonText}}</span>
</button>
<button ng-hide="data.hideButton"></button>
</a>
</div>

 

 

please have look into the code.

 

 

Thanks,

0 REPLIES 0