cancel
Showing results for 
Search instead for 
Did you mean: 

How to Customize the Date/Time field in ADOBE interactive form ?

Former Member
0 Kudos

Hi,

I am working on an Interactive ADOBE form. In my form, i am using a Date/Time field symbol from the object library whose format is "Jan 15, 2010" while application expect "15.01.2010". If I continue with this default value, error message "Enter a valid date (for example, 15.01.2010)" will pop.

Is there any way to customize the date field to the format "15.01.2010" ?

Thanks & Regards,

Kumar

Accepted Solutions (1)

Accepted Solutions (1)

chintan_virani
Active Contributor
0 Kudos

There are different types of Patterns you can use for such objects i.e Display, Edit, Validation.

Select the field and then you can change the patterns through object palette.

Search Adobe Designer Help for more information on same.

Chintan

Former Member
0 Kudos

Thank you Chintan...

Answers (3)

Answers (3)

Hamad
Explorer

Select the field and goto patterns and apply this pattern.

time{h:MM A}

Hamad

Former Member
0 Kudos

Hello,

I had faced same problem and solved like this :

You can Validate the value entered in Time field by,

1. In the Object pallette , make the Edit pattern as "HH:MM:SS" and the Data pattern as time.

2. Write the below given code in the EXIT event of that field.

if ( this.editValue == this.formattedValue && this.rawValue != null){

xfa.host.messageBox("Please Enter Time in Format HH:MM:SS");

this.rawValue = null;

}else{

this.rawValue = this.editValue;

}

This will solve your problem.

Thanks & Regards,

Omkar Mirvankar.

OttoGold
Active Contributor
0 Kudos

Hello,

open your LCD, click Help in menu > Adobe LCD Help (F1)

look for patterns: date and time, you´ll get:

1) description of the patterns

2) examples of the patterns

Like:

YYYY-MM-DD

8/23/08

2008-08-23

EEEE, MMMM D, YYYY

8/23/08

Saturday, August 23, 2008

HH:MM:SS

5:02 PM

17:02:00

date{YYYY-MM-DD} time

8/23/08 5:02 PM

2008-08-23 17:02:00

Regards, Otto

Former Member
0 Kudos

I have choose HH:MM:SS as my display and binding pattern.

Let's say i type "11", in the textfield it appear as "11:00:00", but if i put a button to return the time value, it appear as "11" only.

How to fix it to return "11:00:00" instead?

OttoGold
Active Contributor
0 Kudos

It is clear you don´t have a problem finding the information source, you have a problem with being lazy, you were provided will all the possible examples and sources and still keep asking about the basics. Definitely abuse button action reason. Otto

Former Member
0 Kudos

Well, Otto, thanks for your advise to not lazy. I try describe my problem in a simple way so that everyone is understand, i use a button to as example because it serve my question purpose.

I need to bind my time field to my webservice, everytime i enter "11", although the time fields will auto change to 11:00:00, but "11" will pass to the webservice and R/3 is not recognize it as correct time value. I wish to not adding any extra coding in ABAP, and i believe there is some setting in form object. I have tried all binding pattern, it still passing without ":" and "00".