Jump to content
DanielH

Json schema object properties

Recommended Posts

When creating forms should the object properties be set similar to that of the schema.org markup or is this still only done in the field manager itself?

 

Does this value even matter and it can be anything?

 

In the example below "address" and "streetAddress" are schema.org markup standard values. Just trying to understand the proper way to format these custom fields.

{
  "type": "object",
  "properties": {
    "address": {
      "title": "Address",
      "type": "object",
      "properties": {
        "streetAddress": {
          "type": "string"
        },
        "city": {
          "type": "string"
        }
      },
      "required": [
        "streetAddress",
        "city"
      ]
    }
  }
}

Thanks

Daniel

Share this post


Link to post

Schema.org markup is not related to forms. If you want to apply schema.org markup to the data submitted via this FormBuilder field, you'd only need to add the schema.org object and properties to the theme output of the field.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Please refer to our Privacy Policy.