Search Results for 'script'
-
Search Results
-
Topic: New features explained?
Hi Brendan
I have just updated TF on Mac to latest version. I keep seeing in the release notes that new features have been added each time. Where can I find an up to date list of them I can access, for reference, each time there is a new release and also, where can I find an explanation / instructions as to how to use them? I am just a flat field user with no real database / scripting know how!
Cheers…Topic: Time-Format yyyy-mm-dd
Hi Brendan!
Happy new year!
I’m not sure, if this is a bug of it I’m stupid…> I have a date field.
> I want to use the date in a script.
> Finally I need the date in YYYY-MM-DD FormatFor this I like to use the ISO-Format.
.”getFieldValue” returns:
Sun Apr 19 2020 00:00:00 GMT+0200 (CEST)If I now use “.toISOString” I get:
2020-04-18T22:00:00.000ZAs you see, the date is changing to one day before, because the time zone is ignored.
As a workaround I use
“date.toLocaleDateString(‘ja-JP’, {year: ‘numeric’,month: ‘2-digit’,day: ‘2-digit’}).replace(/\//g, ‘-‘)”But this seems not to be the most elegant way. Any other ideas?
Regards, Eddy
I’m working on a merge record script to be able to take two records and merge them together. This isn’t too bad for almost all of the field types except for the photo and file attachment types. How do I copy the attachments from one record to another for the file and photo fields?