
- 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:52 AM
Hi,
Is this onchange of that same field?
Thanks,
Ashutosh

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

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2020 05:15 AM
the alert you showed in your screenshot is for which field? It is from callback of script include or somewhere else?
Thanks,
Ashutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2020 05:56 AM
Hi Ashutosh
The callback was simply an alert() onchange script based on the Proposed start date field.
Using this I gathered that I do get a value back using g_form.getValue() if I used the field value 'proposed_start_date' rather than newValue.
I did this simply to see if there was an issue in getting the value initially.
I know by doing this there is a value that is captured, I now need to check if it is passed to the script include and I will try to gs.info the script by each line to see where the break is