Hide a Button in portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 07:29 AM
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,