How to hide/Unhide Fields using Javascript D365 1. Create one field or Column in your Entity(Table) for Example A. Entity Name(Table Name ) = College (logical name = new_college) B. Column = collegeFee (logical names are new_collegefee ) 2. Add JavaScript to your Web resource Library, Write the code as follows function hideOrUnhideFields(executionContext) { var formContext = executionContext.getFrormContext(); var collegeFee = formContext.getAttribute("new_collegefee").getValue(); if(collegeFee != null) { collegeFee.setVisible(true); } else { collegeFee.setVisible(false); } } 3.Trigger this on onSave or onLoad Events of Form
Posts
Showing posts from September, 2022