Allow for default value for to-one
relationships in form definition
#5966
bronwyncombs
started this conversation in
Feature Requests
Replies: 1 comment
-
This issue has been mentioned on Specify Community Forum. There might be relevant details there: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
This is related to the request for an automated checkbox that indicates Gift status. This institution would like users to clearly see when a preparation has been gifted if searching records in the database. They currently use a manual workaround with a node in their tree, but automating this is preferred.
Information on how OSU deals with interactions with partial preparations can be found in the additional context section below. They tend to only gift entire preparation lots, and create new preparation records for the un-gifted remainder if there is a partial gift or loan.
Describe the solution you'd like
Support for defining a default node value ("Gifted") for storage could then be used with a conditional of the status of the requested IsGifted checkbox. The preparation storage field would then contain this value once a gift record is saved with it as a gift preparation.
The cell on the Preparation form definition would be something like:
<cell type="field" name="storage" uitype="querycbx" initialize="name=Storage;title=Storage" default="<STORAGE_ID>"/>
(replace <STORAGE_ID> with the ID of the record)
Then they can have a conditional form based on the IsGifted field that is requested to proceed this ability
Describe alternatives you've considered
Reported By
Randy @ Oregon State
Additional context
Beta Was this translation helpful? Give feedback.
All reactions