on 07-02-2008 8:30 AM
Hi experts,
I am new to adobe form. I want to display, if i enter 1234 ,it will be displayed 12.34 .Can you please suggest me?
Thnaks.
Hans
Hi Hans Bauer,
Do the following:
1. Take the field as Numeric Field or Decimal field from Library.
2. Select the field from Hierarchy.
3. Go to menu> windows> Script Editor.
4. Choose Exit event in the script editor.
5. now write the following code in the exit event of the numeric field/decimal field.
$.rawValue = $.rawValue/100
Thats all what you have to do.
Hope it will solve your problem.
Regards,
Vaibhav Tiwari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hans,
If you want to display time in that field then use date and time field instead of decimal/numeric field and make following configurations:
1. Select the Date and time field and go to Object palette.
2. In the field tab of object palette set display pattern and edit pattern as "HH:MM".
3. Select value tab in the object palette and set validate pattern to "HH:MM".
4. Now below the validate pattern there is textbox validate pattern message. Put there the message you want to display.
Hope this will work. If there is any restriction to use decimal field only then do tell me.
Regards,
Vaibhav Tiwari.
Hi,
Do you want to add their values or want to add them on the form.
if you want to add their values then just write the follwing script at the event where you want assigning this value to the field you want :
Num2Time( (Time2Num(DateTimeField1.rawValue) + Time2Num(DateTimeField2.rawValue)) , "HH:MM:SS")
Regards,
Vaibhav Tiwari.
Congrats!!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Will you please be more specific about what you want. What i have understood from your query you have two time fields. You want to enter time in both fields and as its time field value entered can't be more than 2359 i.e. 23:59. Now you want to add values in both the fields that will come to be total hours and minutes and want to display it in third field. For example you enter 12:34 in first time field and 23:45 in second than you want total as (1234+2345 = 3579--> 36 hrs. and 19 minutes). which will be displayed as 36.19 in the numeric field not in time field as its not possible to show more than 23:59 in time field.
Is it what you exactly want or can you please explain it to me in the same manner.
Regards,
Vaibhav Tiwari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks... this problem is solved..
using...
val=Time2Num(val1.formatteddata."HH:MM:SS")+
Time2Num(val1.formatteddata."HH:MM:SS"))/(60601000).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.