This topic is locked
[SOLVED]

 Add/Edit PageField Default

3/19/2010 5:04:46 PM
PHPRunner General questions
J
joevoirol author

I am having problems with the default value for a field in the add page being the same as the edit page. I have unchecked the box that says "applies to the Edit page" but if I remove it from the edit page it also removes it from the add page and visa versa. Is this how it is supposed to work or is there something I do not have set correctly?

Sergey Kornilov admin 3/20/2010

Yes, this is how it's supposed to work.
By default it works on the Add page only. In some cases it makes sense to apply it on the Edit page as well.
If you are looking for more advanced functionality use Edit page events like BeforeEdit.

J
joevoirol author 3/22/2010

I want the default value to work on the Add page only. You stated the default is to work on the Add page only. From my experience the default value is applied to the Add page as well as the Edit page. I have the check box unchecked on the "Apply on the Edit page as well".
This is a default for the date field. I want today's date to be the default on the Add page but I want the data in the date field to be displayed in the Edit page. When I edit the record it inserts today's date instead of the date in the record being edited.
Am I still unclear on the concept?

Sergey Kornilov admin 3/22/2010

As a first step make sure you run the latest version of PHPRunner (http://xlinesoft.com/download)
If this doesn't help post your project to demo account and contact support team directly.

J
joevoirol author 3/23/2010

I apologize, I am mistaken. I did some testing and it works as advertised. If I edit a record it keeps the original date and does not overwrite it with today's date.