@v-siky-msft
Hello Sik,
Thank you so much for your guidance! I wouldn't have been able to figure this out without your help. Here are the formulas that ended up working for me in the sense that each set of edit/save/cancel icons is only visible when its tab is clicked, that the Edit and Save/Cancel icons toggle correctly depending on which mode I am invoking and finally that the edit/save/cancel icons are only visible to app admins when the Designer and Model Shop tabs are clicked.
Request Tab:
OnSelect: Set(varFormTab, "Request")
Request Tab Edit Icon:
OnSelect: EditForm(frmRequestVE);UpdateContext({ReqEditlbl:true})
Visible: varFormTab="Request" && If(ReqEditlbl=true,false,true)
Request Tab Save Icon:
OnSelect: UpdateContext({ReqEditlbl:false});SubmitForm(frmRequestVE);ViewForm(frmRequestVE)
Visible: varFormTab="Request" && If(ReqEditlbl=true,true,false)
Request Tab Cancel Icon:
OnSelect: UpdateContext({ReqEditlbl:false});ResetForm(frmRequestVE);ViewForm(frmRequestVE)
Visible: varFormTab="Request" && If(ReqEditlbl=true,true,false)
Designer Tab:
OnSelect: Set(varFormTab, "Designer")
Designer Edit Icon:
Visible: varFormTab="Designer" && isAdmin && If(ReqEditlbl=true,false,true)
Designer Save Icon:
Visible: varFormTab="Designer" && isAdmin && If(ReqEditlbl=true,true,false)
Designer Cancel Icon:
Visible: varFormTab="Designer" && isAdmin && If(ReqEditlbl=true,true,false)
Req Edit Label (only 1 label is needed for all the sets - I toggle the Visible property to off/false once I am done testing):
Text: If(ReqEditlbl=true,"Save","Edit")
The Model Shop formulas are the same as the Designer formulas with the exception of the tab name. I am attaching a document that includes other fine tuning details in case anyone who happens upon this post is interested in taking a look.
Again, thanks so much. I really appreciate your taking the time to help me.
Kind regards,
Teresa