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...
In questa pagina del sito puoi guardare il video online How to use JavaScript (JS) in model driven App ? della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Power Tech Speck (Girish Uppal) 26 giugno 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 10,439 volte e gli è piaciuto 95 spettatori. Buona visione!