September 2, 2020, 3:10pm
is it possible to create something like this with attributes together with an array. So that it’s possible to create multiple, two value entries. To be honest: What I want to do is adding multiple entities with a related number.
This is what I have:
This is what I need:
Thanks for helping!
I remember when doing complex CMS/CRM web back offices having the ability to group fields like that, was super useful.
Currently it isn’t possible, but try posting a feature request on the editor repo, it sounds useful:
September 2, 2020, 3:19pm
@Leonidas, you probably may do a close one with the new
json type that was recently added:
Its not exactly what was asked, as you can’t really control the number of fields without changing the schema, but this is probably as close as you can get.
Yup, the new JSON schema (currently not documented, but it’s coming), it’s a great step in handling complex script attributes.
Though I think the OP was asking for something similar for array fields, which I think isn’t supported, at least now. I would be happy to be wrong, definitely needing this!
@LeXXik, you are right, it works with array fields as well, extremely happy, going to refactor 100++ scripts to use this
September 2, 2020, 3:30pm
Hey this looks great! But instead of Kappe and lamp in your example it should be: Entity and Value. At entity I want to add every entity I want like Kappe or lamp. an value should be a number like in your example. (This is Photoshop:)
September 2, 2020, 3:34pm
@Leonidas, did you do that with code? Could you post it?
Yeah, basically copy/pasted the code
@LeXXik posted above. In your case it should be something like this (replace MyScript with the name of your script and re-parse):
September 2, 2020, 3:39pm
But how to make an array out of it like in your example?
September 2, 2020, 3:47pm
Got it. I need to add array: true:
Right! Forgot to add it on my code example above, fixed, thanks for posting this.