Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Display 2 particular month on calendar in date/time filed

Avatar

Avatar
Validate 1
Level 1
pg38905522
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
pg38905522
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
pg38905522
Level 1

25-08-2015

HI,

I have a form made with LC Designer and l have 1 date/time field.

I want display only 2 particulars months on the calendar.

Is this possible ?

I think with javascript, but i don't found anythink that will help me

Regards

Pierre

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 1
pg38905522
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
pg38905522
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
pg38905522
Level 1

04-09-2015

Hi,

how cant i send you my form ?

Thank a lot for helping me

Pierre

Answers (8)

Answers (8)

Avatar

Avatar
Validate 1
Level 1
pg38905522
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
pg38905522
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
pg38905522
Level 1

08-09-2015

Hi Magus069,

A big THANK YOU for helping me.

Nice to meet you in this forum,

Pierre

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

04-09-2015

It is highly possible that you are having issues because you are not creating the Date object correctly,

Would you share your form, or part of the form so I can have a look at it?

Because the following line :

is really picky on the parametes, so if any of the substrings function doesn't return the right value, it will not create the date object and cause errors...

If you want to fix it yourself, make sure that the substrings values are correct and if they are correct, I don't know what to tell you, so maybe I should take a look at it if you cannot fix it starting from there

Hope this help!

Avatar

Avatar
Validate 1
Level 1
pg38905522
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
pg38905522
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
pg38905522
Level 1

04-09-2015

HI,

i think a do semthing wrong to call the fuction.

I create a scritp object on parent form. called VDate.

My function is called datevalide.

So i call the scrit with this syntac:

Vdate.DateValide (laDate)

It doesnt do anything.  How do a call the fuction that i created ?

Ragards

Pierre

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

04-09-2015

Hi there,

if you want to call a function from a script object, do not forget to reference the object that holds the function to be able to call the function needed!

Or else it will cause an error, verify the JavaScript debugger and see what is the error message, or you may use the try catch statement for LiveCycle to help you

http://blogs.adobe.com/formfeed/2009/03/handling_javascript_exceptions.html

Hope that helps you!

Avatar

Avatar
Validate 1
Level 1
pg38905522
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
pg38905522
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
pg38905522
Level 1

02-09-2015

Hi,

Thanks for the reply.

I will try this.

But, i have many dates fiels. So, cant i use un fuunction to call the script ?

I try to make by a script object. But it does't seem to work.

There is the code to call the function on exit event:

form1.#subform[0].Choix1Date1[3]::exit - (JavaScript, client)

DateValide(Choix1Date1[3]);

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

28-08-2015

Hi again,

if you want to use the JavaScript to do this, use the new Date() constructor to create a Date object..

Hope this help!


Avatar

Avatar
Validate 1
Level 1
pg38905522
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
pg38905522
Level 1

Like

1 like

Total Posts

17 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
pg38905522
Level 1

25-08-2015

Hi,

Thank for the answer.

Now, how can i get the value from the calendar

Pierre

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,078 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

25-08-2015

Hi there,

unfortunately, it is not possible just to show 2 months in the calendar of a date field, unless you create your own date field UI

but it is possible to validate the value entered to make sure the date is within those two months