Hi
I’m programmatically creating fields using:
form.addNewFieldNamedWithType(key,fieldType)
The documentation for that function in the scripting API gives the following field types:
[text, number, calc, location, photo]
I’d like to add a boolean / checkmark / yes-no field.
Is this possible using a script?
Tom
Yes, this is possible. Looks like just a case of missing documentation.
form.addNewFieldNamedWithType('my new field','check_mark')
Reference to an earlier post on supported types for addNewFieldNamedWithType:
The field types you can use in the addNewFieldNamedWithType command are all the field type names in lowercase with underscores between the words. Except for Date & Time, which is just date_time. But if you export a CSV file with field type tags enabled, you’ll see them in the header row.