[OGo-Users] Default value for Comment field
Helge Hess
users@opengroupware.org
Tue, 13 Feb 2007 01:10:17 +0100
On Feb 12, 2007, at 19:41, Gregory Malsack wrote:
> I would like to add a default value to the comments field in the
> appointment scheduler form.
Just a static text like "enter something in here" or something more
dynamic?
If JavaScript is OK, the most trivial way is to give the
SkyTextEditor in LSWAppointmentEditor.wox an explicit name and then
use JS to add content, something like that:
<var:component className="SkyTextEditor" name="aptcomment"
text = "comment"
...
<script>$F("aptcomment").value = "enter something here"</script>
Well, otherwise you would need to edit LSWAppointmentEditor.m and
prefill the 'comment' ivar, eg inside the
- (BOOL)prepareForNewCommand:(NSString *)_command
type:(NGMimeType *)_type
configuration:(NSDictionary *)_cmdCfg
method.
Greets,
Helge
--
Helge Hess
http://www.helgehess.eu/