Service portal Angular ng-templates Add button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2019 05:47 AM
I created a template, and actually added a button to the form.
however, I can not get onclick to trigger.
I put the onclick function on the widget it's self is there a better location?
Looking for ideas why this does not actually work.
<button name="lookup" ng-if="formModel._fields[f.name].type=='reference'" role="link" class="btn btn-primary btn-sm m-l-xs" ng-click="lookup()" aria-label="${Select Record}">Select Record</button>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2019 06:39 AM
How are you calling the function? I see the ng-click which is good. Is it in your client script? If it is, do you have any logs in the script to see if it is running? Do you have it as $scope.yourfunctionname or c.yourfunctionname?
Let me know and this could be a quick fix!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2019 08:20 AM
you function name should be
ng-click="c.lookup()"