HomeBlogDocumentation@placemarkioLogin

Forms

Placemark supports a nearly-unlimited range of data types for properties. You can name properties anything you want, and store any type that can be encoded as JSON - text, numbers, objects, arrays, boolean values.

But in some cases, you want to easily input a predictable set of properties with a form. For that, Placemark has: forms. You can create a form by clicking the gear icon next to the properties editor.

Click this icon to access the form editor.

Then you can create a form, and after saving the form, alongside Raw, you have "Form" option, which contains the simplified fields.

The created form

Forms have to interact with pre-existing data, because you can create and modify then at any time. Here's ho they do that:

  • Creating and editing a form doesn't change your data. Your data doesn't lose or gain properties when you change the inputs in a form.
  • When you edit data through the form, those properties are edited, but other properties are left alone. For example, in the form above, 'notes' and 'type' will be edited, but if this data already has a property 'kind', it will stay the same.
  • If the form field and the existing data are not compatible - for example, if the property contains an object but the form edits text, the form will appear empty at first, and saving the form will set the property to that new text value.
© 2021, Working Idea LLC