This topic is locked
[SOLVED]

 text field content lost if save fails

4/14/2010 12:06:53 PM
PHPRunner General questions
L
laonian author

In "Add New" page, if any fields (number, varchar) do not pass custom validations, my "Before Record Added" event will stop the application (by return false) and the user has to change the those failed fields' values. But what I found is that if you have a text field with "Use Rich Text Editor -Basic Rich Text Editor" option, that needs input on the same Add page, after the error prompt, all previous input in this text field has lost. It I don't select the "Use Rich Text Editor", all unsaved input will stay well. Any ideas on how to save what you have typed before in this field with Rich Text? Thanks.

Sergey Kornilov admin 4/14/2010

Entered data should not be lost if you return false in BeforeAdd event.
As a first step make sure you use the latest version of PHPRunner. If this doesn't help post your project to demo account and contact support directly at http://support.xlinesoft.com sending your demo account URL for investigation.

L
laonian author 4/15/2010

I used build 5242. I did have return false in the BeforeAdd event. After I changed to CKEditor, the problem is gone.