Create custom metric type for surveys
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 03:13 AM
We are trying to create a custom metric type to add to a survey but the data is not being persisted.
We feel we are missing the step or config to map the metric type to a DB, the only information we can find on this is not very helpful so maybe someone else has better / clearer steps?
Can someone point me to a blog/tutorial for this?
Thanks in advance!
- 1,605 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 04:58 AM
Hi @Colin Chalmers. I'm facing the same issue here, Did you find any solution for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2024 03:05 AM
did you find any solution on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I found the answer in this thread:
https://www.servicenow.com/community/developer-forum/create-custom-metric-type-in-surveys/m-p/306795...
In your client controller script make sure $scope is a parameter to your top level function and set the page field value somewhere in your client controller code.
HTML:
<input type="text" class="form-control" placeholder="Enter employee name.." ng-model="c.data.employee" ng-change="c.update()">
Server script:
Client Controller: