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 11 - Customizing Option Sets Dropdown Fields with JavaScript

  In this Blog, we will see how to Customizing Option Sets Dropdown Fields with JavaScript label1 = formContext.getAttribute( "bosch_op...