Search Results for 'script'
-
Search Results
-
Hi! Is there a way to run a script on a record change or save event? And can I modify just one record with a script, or does a script have to modify all records in a form?
What other events are there?
In my form I have a number of fields of the date type with a date format of long (that is 27 January 2021). In a script I have included the date field, but the output is as follows: “Wed Jan 27 2021 00:00:00 GMT+0000 (GMT)”, for example:
var hedd_verification = record.getFieldValue('fld-e7c386b5203a456dbaeb4755c6897a23'); var hedd_verification_id = 'fld-e7c386b5203a456dbaeb4755c6897a23'; var degree_level = record.getFieldValue('fld-04d88b9bf5c34cef8b2b488e4bccd67d'); var degree_subject = record.getFieldValue('fld-e1c8f4bdea994a149cc338498c22e20e'); var hedd_date_verification_sought = record.getFieldValue('fld-db9621fa80094bb9ac4fc2f68bcc2595'); var hedd_date_verification_obtained = record.getFieldValue('fld-b7c0b62ed0514a15848e8cb32262b617'); var gender = record.getFieldValue('fld-e6697b5fc0d24f328757592bf4362d4e'); if (hedd_verification == 1) { "and I verified that " + gender + " was awarded the " + degree_level + " in " + degree_subject + " by contacting HEDD (www.hedd.ac.uk, who are 'UK Higher Education's official service for candidate verification and university authentication') on " + hedd_date_verification_sought + " and receiving confirmation from HEDD of the award on " + hedd_date_verification_obtained } else { "but I have not verified that the degree certificate is genuine nor have I made any independent check as to its authenticity" }Is there a way to format the date in the script so that the date comes out as 27 January 2021 rather than “Wed Jan 27 2021 00:00:00 GMT+0000 (GMT)”?
Any help would be gratefully received.
Hi Folks!
I have a (hopefully) small issue …
In order to categories records, I use a many-to-many relationship. This allows me to change the names of the categories later, because the category name is the value of the first field in the related record. And in the related record I can see easily a list of all records, with are under a specific category. So, this is the advantage compared to a picklist.
But now I need to read out the category-names, so that I can use them in the mother record. Concrete, I want to script, so that I have a text field, with just list all the category names a specific record belongs to.
So, call my stupid, I find no way. Of course, I know how to import a field value from a related record. But how can I get a list of all the field values in the first field of all the records wich are related?
Thanks in advance, all the best, stay healthy!
Eddy