How to access values in Widget Client Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2020 06:15 PM
Hi,
I cloned form widget and how can I access the value of following duration field in Client Scripts for validation?
<input type="text" class="form-control ng-valid ng-dirty ng-valid-parse ng-not-empty ng-touched"
id="dur-hours-u_start_date_of_activity" ng-model="parts[unit]" ng-disabled="field.isReadonly()"
ng-change="updateDuration()" title="Hours" role="textbox" aria-invalid="false" style="">
<input type="text" class="form-control ng-pristine ng-untouched ng-valid ng-not-empty"
id="dur-minutes-u_start_date_of_activity" ng-model="parts[unit]" ng-disabled="field.isReadonly()"
ng-change="updateDuration()" title="Minutes" role="textbox" aria-invalid="false">
Thanks,
Ashraf
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2020 07:33 AM
Try g_form.getDisplayValue().
https://serviceportal.io/docs/documentation/client_scripting.md
