Bhubaneswar, Odisha, India
+91-8328865778
support@softchief.com

Hide Form fields in Power Page/ Power Portal using jQuery/ JavaScript

Hide Form fields in Power Page/ Power Portal using jQuery/ JavaScript

Form fields are composite control so to hide a field on Power Pages Form, you need to use .parent jQuery function. Use the below code.

In the below example We are hiding the Patient lookup row from form.

     
$(document).ready(function(){
     var lookupControlDiv =  $('#lifeline_patient_lookupmodal').parent().parent();
     $(lookupControlDiv).hide();
});

Final Result.

The patient lookup row is hidden.

Hope this helps.