- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2020 06:22 PM
Is it possible to render My Survey widget based on the conditions:
- visible on SP if Survey is assigned to the user and is active.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2020 10:41 PM
Hi,
Change the first line of the "My Surveys"-widget to:
<div ng-if="data.totalRecords != 0 && !(options.showAll && options.showAll != 'false' && data.instances.length && data.totalRecords == data.maxRecords)">
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2020 07:31 PM
You want to make the change in header option of My Survey or the widget ??
In the OOB widget it is already defined in the HTML to show if the number of records are not equal to 0 then show the records-
If you want to put the condition in the header menu item then you need to put a condition
You can write a function in a script include to check the number of survey records for the current user and use the function in the condition of the menu item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2020 08:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2020 10:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2020 08:38 PM
Thanks....that change fixed the issue.