Skip to content

How to call custom edit form

Problem:


I am trying to call *Custom edit form* using following command

$dg->enable_edit('FORM','CRUD','custom.php');

But it is calling your default form. Kindly advise.

Solution:


In enable_edit() function,  the 3rd parameter only specifies a custom edit script name, not the actual form. 

If you only wanted to modify form layout, check out https://phpgrid.com/example/customize-edit-form-layout/

If you must have your own form, see the demo on custom edit via iframe. Visit https://demo.phpcontrols.com/, and look for "Custom Edit In Iframe". 

Feedback and Knowledge Base