edina / fieldtrip-cobweb-project

A cobweb theme for fieldtrip app
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

FTOpen: the app should be generating names for the records #108

Closed panterz closed 8 years ago

panterz commented 8 years ago

when the user hasn't defined which field to be the one that will name the record. This is defined like this:

https://github.com/edina/survey-designer/blob/a8b7884e55eda256d34f9a6ef1ef37c397692940/test/survey.json#L6-L8

If there is no such a thing the app should go and create unique names e.g. survey name-date

It also need to b hidden when the form appears to the user.

gmh04 commented 8 years ago

Some clarification from discussion with panos:

1) if multiple values in recordLayout.headers, use first element 2) if recordLayout.headers is defined the default value will be json.fields[].properties.prefix

gmh04 commented 8 years ago

An attribute will be added to field that will be used as record title, e.g:

<input name="form-test" id="fieldcontain-text-1" data-title="true" ... /