I have a Power Apps Portal and Model Driven App in a test environment. When I submit an application form from the portal that creates a case in the model driven app.
When the caseworker picks up the case I would like to develop a process whereby if the caseworker needs more information from the applicant then they can specify which exact fields on the form the applicant needs to change or amend before resubmitting.
Can anyone please advise if that's possible and if so what is the best practice to ensure that the applicant can edit only those fields that I specify but not all fields?
In the past for things like this I've sometimes created a smaller "Update" form with just the fields that commonly need to be fixed and embedded it in a separate portal page. Then we just email that the to user to update their record with specific instructions on what they need to fix. This works if it's a known set of fields that frequently need to be updated (e.g. address fields or something like that).
Usually it was easiest just to enable portal comments and the caseworker reads the timeline on the case for updates from the user and manually fixes it in the model-driven app.
If I was tasked with automating something more dynamic and specific for situations like this, I might do something with Javascript and/or liquid code to set all fields to readonly except the ones selected for updating and highlight them.
Perhaps an embedded canvas app in the model-driven app case form for your caseworker to select the fields that need updating. That information is stored in a JSON array on a custom text field on your case, or on another table or just somewhere that your javascript on the portal "update your case" form page can read to figure out which fields need to be locked down and which can be edited.
This is just me brainstrorming, there could be a simpler solution and I'd like to see what others have to say.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.