setComments
  • 30 Oct 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

setComments

  • Dark
    Light
  • PDF

Article summary

Description

Sets or appends to the user's comments for a page in your app's layout.


Input Parameters

NameTypeRequiredDescription
commentsTextYesComments to assign to page
[append]BooleanNoWhether or not to append comments to any existing comments (default = false)
[index]NumberNoPage index (default is the current page)

Returns

No return value.


Examples

// set the user's comments for the current page
user.setComments("Some comments.");
// append additional comments on the 2nd page
// note: page indexes are zero-based
user.setComments("Some comments.", true, 1);

Remarks

Attention

You should always be careful not to replace any user comments.


What's Next