I am running SharePoint 2013, and I would like to be able to hide a button depending on who has the document checked out. So if I have the form checked out, and I open the form, I will see Button1, and Button2 will be hidden. However, if I have the form checked out, and someone else opens the form to read it, I want them to see Button2, and have Button1 hidden for them. I was thinking about comparing the currently logged in user the value in the Checked Out To field, but I dont see a way to add that field to the form to do a comparison. I saw other posts about calling the web service, but I didn't see anything that would let me Get the currently checked out username.