How to rectify this errors in layout section

Administration | Layouts ,
Click on New Layout button, pop up will come
Next click on ** Show Services Section ** text box i got this error like below

and next click on ** Show Products Section ** text box i got this page ,here explain what product data need to show

see below screen shot

thanx,
siva shankar.G

Hi @siva
I see it’s been a while since you asked your question.
If you haven’t already figured out the answer, we could look into it further.

thanx for reply,

but i need clear information on that please provide,

regards,
siva shankar.G

Hi @Shiva
That json error relates to incomplete data being passed between the database and the layout form.
If you are familiar with your browser developer tools you can go to the site mentioned, http://datatables.net/tn/1
and find instructions on how to exactly diagnose the error.
However, I’m not a dev so I can’t tell you specifically what the error means. But I do see a couple items in your screenshots that could produce the error.

In the ‘Layout Properties’ image I see your form has no ‘Layout ID’ or ‘Title’. The Layout ID is the form’s identifier in the database so is required data, and the Title is also required. So with those two items missing I’m not surprised you got an error.

“Layout based visit forms”, or “layout based forms” AKA LBFs, which you are trying to create, are a very capable way of making custom data entry forms. But they are fairly complex and very particular about how they are built. A tutorial can be found in the OpenEMR documentation WIKI that explains step by step how to make a sample LBF.
https://www.open-emr.org/wiki/index.php/LBV_Forms
The tutorial was written for an older version of OpenEMR but the steps should still apply.
Hope this helps!