Hi,
The script is firing when the form is opened (docReady event) and is hiding the button as requested. I think that I would delete this docReady event and just leave the presence be set from the script in the dropdown. Does that make sense?
There is an example here that looks at ways in which you can script the presence and relevance properties: http://assure.ly/h7whb8.
Niall