Is there a way to ensure that a patient only has one type of form entered eg a study consent form (One should be able to track the changes to a form , but each patient should only have one of these entered)
+1 if you can limit editing of this form in future once a criteria has been met eg a patient has been enrolled in a study and now cannot have their consent changed ?
Dear @judy, If you’re using HTML forms, you could use some JavaScript to prevent a given type of form from being entered multiple times or edited. I did something like this to make my Vaccination form automatically go to edit when opened, you could re-direct to the view version of the form instead so the average user wouldn’t be able to make changes to the form if it already exists.
You should specify the form you want to be only one form entered — so when a user select that form it should open the saved form and allow you to edit the saved form
Maybe an additional should be do not edit for locked form
I have just sent an updated module to your gmail account.
There is a setting/global property named “xforms.singleEntryForms”
Set it to a comma separated list of the ids of the forms you want to behave
like this. e.g 7,6,8
Then test it out and tell if it works.
If it happens to work, show your appreciation by updating the documentation
with this functionality.