
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2020 02:23 AM
Hi Guys
I utilised the Glide Ajax provided by user
The link to
The Client Script I utilised:
the Script Include to go with it is a big one so I copied and pasted the section used for the above ajax:
FYI for my own function to work I had to do a GlideAjax before hand to bring back another field integer. So the reply var is simply getting an integer that I use in the add time var. I point this out only for clarification of any differences with
Now what happens when I run this is that instead of taking the date from the proposed start date field, it seems to take today's date and then run the GlideAjax (correctly) based on that:
I cant really find anything on why this would take place. All sources seem to suggest g_form.getValue() should work for a Date field, but I'm certain this is where this is going wrong. It's as though it doesn't recognize the field.
Any suggestions?
Kind Regards
Markell
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2020 07:06 AM
day.setDisplayValue();
NNot sure why I also had to do day.setValue() for it to work but hay 🤷
TThanks for trying anyway 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2020 04:37 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2020 04:42 AM
Hi,
I did this and it worked for me. The value is retrieved properly for me.
Are you testing this on onChange script?
Thanks,
Ashutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2020 04:48 AM
Yes onChange script. I'm going to see if I create a new date field and try it what happens. I have had weird instances in the past where I have had like a faulty field for want of a better term.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2020 04:51 AM
Tried it again same problem 😞

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2020 04:45 AM
FYI I was using newValue only works with the actual field value.
Still trying to get back date with the value from the field. Attempted converting to string (toString()) no luck