Friday, September 13, 2024

FormContext to retrieve and set field values in MSCRM/Dataverse

Introduction:


Day 2 : using FormContext to retrieve and set field values in MSCRM/Dataverse forms.


Sample JavaScript


function onLoad(executionContext) { debugger; var formContext = executionContext.getFormContext(); if (formContext.getAttribute("bosch_dayname").getValue() != null) { formContext.getAttribute("bosch_setvalue").setValue(formContext.getAttribute("bosch_dayname").getValue()) } }


Video for your Reference





No comments:

Post a Comment

Day 4 - Validating Form Fields using JavaScript

Introduction: In this blog we will see how to Validating Form Fields using JavaScript function validateDateField (executionContext) { ...