This topic is locked

Inline Add Read Only Fields Missing Label Text

11/16/2007 12:06:17 PM
PHPRunner General questions
J
jhorowitz author

PHPRunner Version 4.1

Build 320
For an Inline Add, selecting "Read Only" on the "Edit As" element property tab results in the default value not being displayed on the page.
The <input type="hidden" value="<default_value>"> HTML element is still generated, but the value is not placed as viewable text in the browser.
In other words, it looks like the field is blank to users.
Please advise.

J
Jane 11/19/2007

Hi,
I wasn't able to reproduce this error.

Please publish your project on Demo Account and post a URL to your pages here or send it to [email=support@xlinesoft.com]support@xlinesoft.com[/email] along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.

J
jhorowitz author 11/20/2007

For my particular problem, [email=support@xlinesoft.com]support@xlinesoft.com[/email] gave me the following solution:
First, modify C:\Program Files\PHPRunner4.1\source\add.php by replacing this line

##foreach Fields as @f filter @f.bAddPage && @f.strEditFormat==EDIT_FORMAT_READONLY##



with this line

##foreach Fields as @f filter (@f.bAddPage || @f.bInlineAdd ) && @f.strEditFormat==EDIT_FORMAT_READONLY##



Then, after recompiling my project the bug disappeared.
I was told this issue will be fixed in a future update of PHPRunner.
Thank you support team!!