0

Using the Microsoft.SharePoint, I can render SP Fields in custom application page using the below server side code.

BaseFieldControl editControl = field.FieldRenderingControl;
editControl.ID = field.Id.ToString();                
editControl.ControlMode = SPControlMode.New; 
editControl.ListId = list.ID; 
editControl.FieldName = field.InternalName; 
pnlFields.Controls.Add(editControl);

Now, we're converting our farm solutions to Addins/SPFx. I cannot find an equivalent of the above code via CSOM/JSOM. What is the way to render SP Fields in a custom page via client side programatically (Addins/SPFx) and How?

This will be used in a Batch Edit page, wherein the custom Batch Edit page contains the SP Fields visible in the default edit form of the list. And on the Batch Edit page, the user can input their updates to the items (just like entering inputs on the edit form).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.