How to use JavaScript (JS) in model driven App ?

Veröffentlicht am: 26 Juni 2023
auf dem Kanal: Power Tech Speck (Girish Uppal)
10,439
95

This video explains the process of using JavaScript (JS) file in model driven app to convert text in multiple address fields to Title case. This video makes use of custom JS file uploaded as a web resource in the solution file for the model driven app.

#powerapps #powerplatform #dynamicscrm #dynamics365 #javascript

Code:
function TitleCaseFunc(executionContext){

var field = executionContext.getEventSource();

field.setValue(toTitleCase(field.getValue()));
}

function toTitleCase(str) {
return str.replace(/\w\S*/g,
function(txt) {
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
//return txt.toUpperCase();
})
}

✔️You can visit https://girishuppal.com (Girish Uppal) website to get more productivity tips.

✔️Please subscribe to @powertechspeck youtube channel    / @powertechspeck   to get more productivity tips and tutorial content from Girish Uppal

✔️You can view my Linkedin Profile at:   / girishuppal  

✔️You can view the badges earned by me at: https://www.credly.com/users/girish-u...


Auf dieser Seite können Sie das Online-Video How to use JavaScript (JS) in model driven App ? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Power Tech Speck (Girish Uppal) 26 Juni 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 10,439 Mal angesehen und es wurde von 95 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!