I would like to create a group of fields by code.
create group
set the name of it to "myGroup"
create field
set the name of it to "myField"
set the top of field "myField" to 10
set the width of field "myField" to 100
set the left of field "myField" to 20
-- add myField to myGroup
-- ??
set the backgroundBehavior of group "myGroup" to true
Questions
- How do I add the field "myField" to the group "myGroup"?
- And how do I add the group to the current card?
- How do I test if a card includes group "myGroup"?