LBF forms problem after upgrate to 4.2.0

ecavalier wrote on Thursday, October 15, 2015:

I have problem with LBF forms, all fields with static text not showing in LBF forms.

ecavalier wrote on Thursday, October 15, 2015:

Please check attached screen shots

fsgl wrote on Thursday, October 15, 2015:

Which OS?

Prior version?

Mysqldump?

visolveemr wrote on Friday, October 16, 2015:

Hello Nerik

The static text is not printed in the Layout form report’s but it will be seen in the actual forms. This can be fixed by adding the following lines in the file ‘library/options.inc.php’

After the line: openemr/options.inc.php at master · openemr/openemr · GitHub add the following:
$data_type = $frow[‘data_type’];
And, after this line: openemr/options.inc.php at master · openemr/openemr · GitHub add the following:
if($data_type==‘31’) $currvalue = " ";

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com | Phone: 408-850-2243
Demo’s @ ViSolve Demo Library

ecavalier wrote on Wednesday, October 21, 2015:

I’m using windows version v4.2.0 (4)
Before upgrate, to v4.2.0 (3) I didnt had this problem. Is there is any parameters I need to change in LBF form.

fsgl wrote on Thursday, October 22, 2015:

As I found out myself with Patch 4, patching can remove your customization.

Will take a look at the files which were changed in Patch 3 to see if static text was affected later in the day & get back hopefully with a fix or workaround.

fsgl wrote on Thursday, October 22, 2015:

Checked the changed files & found interface/forms/LBF/new.php was in the list. This may or may not have caused the problem.

If Data Type is Static Text & Options is T, then Description should be populated with the missing text.

Would suggest that you choose T as the Options for the 2 fields & add back the text in Description to the Layout.

Good idea to keep a record of all customizations & check the list of changed files before patching.

Also suggest that you back up with this method to minimize loss in LBV forms. For redundance, would be good to have a system image in case your server dies. With a system image you can go back to work in 20 minutes on another device.

ecavalier wrote on Wednesday, October 28, 2015:

Hi
I tryed to do - Data Type is Static Text & Options is T, then Description should be populated with the missing text.
Still same probllem no static text in form
Static text field is not working at all

fsgl wrote on Wednesday, October 28, 2015:

Just created a static text in 4.2.0 Demo.

Try following:

  1. Delete old static text fields.
  2. Recreate fields, but Size should something between 50 & 255, max size 255; Label/Data Cols should be 1,0 or 1, 1 then save. See attachment 1.
  3. Add static text in Description & save. See 2.
  4. Size, Label/Data Cols should be adjusted if layout in 3 not to your preference.

ecavalier wrote on Friday, October 30, 2015:

Thank you fsgl for your help
I just created new test LBF form, step by step by your recommendations.
You can see static test on the form, but it disappear after you saving it, in you cant print this form, because it blank

fsgl wrote on Friday, October 30, 2015:

You’re correct.

If you click the Edit button, you can see that the Static Text had been saved but it’s just not visible in the Encounter form (Test 3. PNG).

Try ViSolve’s advice. Backup first, go to xampp\htdocs\openemr\options.inc.php, add the 2 snippets (copy & paste from the post above) then save the changes. Are the Static Texts visible now?

fsgl wrote on Friday, October 30, 2015:

If you don’t know how to add line numbers in the left margin of your text editor, install Notepad++ & open options.inc.php with it (right click). Lot easier to locate a line to change when numbered.

ecavalier wrote on Friday, November 06, 2015:

Thank you for your cooperation, but I cant resolve this problem by my self, because I have 22 LBF forms, and I will for next patch if it will fix this problem

visolveemr wrote on Saturday, November 07, 2015:

Hello Nerik

The fix given above is a common file change, this will fix for all the LBF forms. For easy reference attached the customized file here. Just do a backup and replace the file ‘library/options.inc.php’. This will fix already saved LBF forms too.

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com | Phone: 408-850-2243
Demo’s @ ViSolve Demo Library

bradymiller wrote on Wednesday, November 11, 2015:

Hi Visolve,
Is this something that should go into the main codebase?
-brady
OpenEMR

visolveemr wrote on Wednesday, November 11, 2015:

Hello Brady

This fix is for displaying the ‘static text’ in the Layout based form reports. If it is a general requirement, we can move this to code base.

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com | Phone: 408-850-2243
Demo’s @ ViSolve Demo Library