Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Time Date Submitted

Avatar

Level 3

I'm populating a text field via a "pre-submit" script that is attached to a "Submit by Email" button

The script looks like

form1.Subform.TextField2.rawValue

Works fine however I get back

Thu Mar 31 2011 20:08:49 GMT-0400 (Eastern Daylight Time)

More than I need to know...all I want is date and time.

Thanks!

-pc

= Date();

4 Replies

Avatar

Level 10

Hi,

If you select the object and go to the Object > Field palette. There is a Patterns button, when clicked will alow you to set a display pattern.

It is probably easier if you change the textfield to a datetimefield, that way the default display patterns will include a wide range of date patterns.

Good luck,

Niall

Avatar

Level 3

If I changed the field that is being populated by the submit button to a date field (which makes perfect sense) it won't populate. The script shown in the orginal email was goof up when I posted it actually looks like

form1.Subform.TextField2.rawValue

= date();

Also, having trouble getting the addInstance to flow correctly to additional pages. Any help you could provide would be great. I'm very close to getting this completed.

Thanks!


http://share.planswift.com/download/?file=42FUHLUJ-DZNU-9B6O-R6KN-LLDHH7FG9BA

Avatar

Level 3

Actually figured out the Pagination issue...working great now.