Expand my Community achievements bar.

SOLVED

Multiple presence for one object

Avatar

Level 3

I'm trying to setup an object (button) with two different presence script.  Right now I have a button with the presence set to visible (screen only) under the object --> field tab.  Then I have at the docReady event i put this.presence = "hidden" not sure if this is the right way.  Is there a better way to do this?  It seems to work find on the form but when the form is saved and reopened the button disappears.  I guess I should also mention that the appearance of the button is controled by drop down.  Any help on this please is greatly appreciated.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 3

Thank you! That was easy enough...