As shown in the screenshot I want to Visible false these fields. DlvTerm, Modedelivery and SourceCode are dynamics control it tried the following code
[FormEventHandler(formStr(DirPartyQuickCreateForm), FormEventType::Initialized)]
public static void DirPartyQuickCreateForm_OnInitialized(xFormRun sender, FormEventArgs e)
{
FormGroupControl diveTermMode = sender.design().controlName(FormControlstr(DirPartyQuickCreateForm,DynamicDetail));
diveTermMode.visible(false);
}
but nothing happens. Please give the suggestions. Thanks.