Sign In   Register
Pinned Items
Recent Activities
  • Hi All,

    In my form users can create various entities (individuals,companies,trusts,partnerships etc.) and add addresses which are saved as an array of values in their corresponding Data Fields in the format:...

    Hi All,

    In my form users can create various entities (individuals,companies,trusts,partnerships etc.) and add addresses which are saved as an array of values in their corresponding Data Fields in the format: [{''label":person1:"value":person1},{''label":person2:"value":person2},.....]. This Data Field for example allIndividuals is then used as the data source for the data driven drop down Directors in the companies repeat. This all works very nicely until the Form is Saved and Re-opened when the data is not saved:

    All Data Fields are configured the same way and are included in the Submission Data:

    On Save the data is as follows:

    data.allIndividuals =
    (6) []
    0: Object { label: "", "$$hashKey": "object:4003", "$i": 0, }
    1: Object { label: "John Frederick Smith", value: "John Frederick Smith", "$i": 1, }
    2: Object { label: "Bilbo Baggins", value: "Bilbo Baggins", "$i": 2, }
    3: Object { label: "Frodo Baggins", value: "Frodo Baggins", "$i": 3, }
    4: Object { label: "Gandalf Wizard", value: "Gandalf Wizard", "$i": 4, }
    5: Object { label: "Roger Federer", value: "Roger Federer", "$i": 5, }
    length: 6

    On re-open of the form the data reads:

    data.allIndividuals =
    0: ""
    1: ""
    2: ""
    3: ""
    4: ""
    5: ""
    length: 6

    Furthermore..................

    if I add another Data Field and store the data in the format: [{"individual":person1},{"individual":person2},..]

    The Data is returned on for reopen in the format:: [{"Individual":person1},{"Individual":person2},..]

    where the identifier is capitalised.

    Before Save

    data.allSimpleEntities =
    (5) []
    0: Object { individual: "John Frederick Smith", "$p": {}, "$i": 0, }
    1: Object { individual: "Bilbo Baggins", "$p": {}, "$i": 1, }
    2: Object { individual: "Frodo Baggins", "$p": {}, "$i": 2, }
    3: Object { individual: "Gandalf Wizard", "$p": {}, "$i": 3, }
    4: Object { individual: "Roger Federer", "$p": {}, "$i": 4, }
    length: 5
    After Save and Reopen
    data.allSimpleEntities =
    (5) []
    0: Object { Individual: "John Frederick Smith" }
    1: Object { Individual: "Bilbo Baggins" }
    2: Object { Individual: "Frodo Baggins" }
    3: Object { Individual: "Gandalf Wizard" }
    4: Object { Individual: "Roger Federer" }
    length: 5
    I could probably live with this except not all (simple)data fields return values some are blank as in the first example:
    If I save data in a certain form, I expect to see it back in the same format.
    What am I doing wrong or is this a Bug?
    More
    1. View Post
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Check if field is read only

    I am writing a generic js function to check if  page is blank and I don't want to check read only fields but checking for the standard .disabled or .readonly does not seem to work and the documentation is terrible, what is the best way to check...

    I am writing a generic js function to check if  page is blank and I don't want to check read only fields but checking for the standard .disabled or .readonly does not seem to work and the documentation is terrible, what is the best way to check is a field is read only?

    Cheers, Richard

    More
    1. View Post
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Richard Matthews unlocked the badge Newbie
    Newbie
    Being part of a community. To unlock this badge, you need to register on this site.
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Richard Matthews joined the group, Journey Platform
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
There are no activities here yet
Unable to load tooltip content.

Not a member?

Register to ask a question and access to more content.

Join now

Looking for something else?

You can request access to:

  • Courses
  • Full Release Notes
  • Product Downloads
  • SDK

Request access