Providing default value for EDIT fields

Talk about implementing of customized templates

Moderators: ne_moj, zewa

swift-au
Newbie
Newbie
Posts: 1
Joined: Mar 22nd, '17, 10:53

Providing default value for EDIT fields

Postby swift-au » Mar 22nd, '17, 21:14

I realise you can provide a default value for form elements in ADD mode, but I would like to do the same in EDIT mode, for form fields where the database field is currently NULL or an empty string. In my particular case, this would be useful for date fields, where the majority of time the current date will be entered, but users still need the ability to change the date if they so desire.

administrator
Site Admin
Site Admin
Posts: 5937
Joined: Jan 7th, '09, 23:18
Contact:

Re: Providing default value for EDIT fields

Postby administrator » Mar 24th, '17, 07:50

What is a default value for edit mode, when record already exists?
The value is taken from database.


Return to “Add/Edit/View Mode Templates Implementing”