"data structure" type of field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 12:09 PM
I'm looking for a way to allow users to input structured data into a form element.
One example would be a server request form where the user needs to specify one or more file systems to be created and mounted on the server.
Each file system has a couple of data items itself, such as name, size, ownership.
I'm looking into the "data structure" type of variable, but I can find no documentation on it, and my experiments with it are not meeting with any success.
Has anyone used this type of field and if so, can you give me some advice?
Thanks in advance.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 12:26 PM
I don't believe what you are looking for exists. When storing a data structure I usually convert the object to a string and then restructure when coding.
JSON.stringify() - JavaScript | MD

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2016 05:00 PM
Here is an earlier post that talks about the Data Structure field: datastructure field type in forms
I don't think it's what you're looking for. I only achieved this result before by having separate fields for each data value, then combining them into a single JSON formatted field (for example), or by getting the user to input the structured data into a large string field, and then validating their input.