Hello Peter,
You're right, you can't have the lock permission without unlock. And you can't lock a form from the mobile app.
I have a couple of ideas for how to implement a scheme like this, but both require some coding:
1. Give your data entry people lock/unlock rights so they can lock the form when they're ready to. Use the JavaScript injector or Shazam module to include a JavaScript function in the forms that:
a. Reads the current user's username (i.e. from the #username-reference span)
b. If the user is not in a white-list of allowed unlockers coded into the function then hide the lock record table row (#__LOCKRECORD__-tr)
2. Don't give your data entry people lock/unlock rights, but write a DET or record save hook that (for example) locks the form when it gets saved with status "Complete". The locking could either be manually coded into the DET/hook or be done via an API call to the Locking API external module.
Regards,
Luke
--
You received this message because you are subscribed to the Google Groups "redcap open" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
redcap_open...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/redcap_open/eab1a5ab-054a-41fe-8783-00570f62f14c%40googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.
This e-mail and any attachments to it (the "Communication") are, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Murdoch Children’s Research Institute (MCRI) ABN 21 006 566 972 or any of its related entities. MCRI does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication.