We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to access values in Widget Client Script

ah16
Mega Expert

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

 

5 REPLIES 5