1. Home
  2. Docs
  3. Tags Add-on
  4. Javascript Functions
  5. setupWidget

setupWidget

Purpose

Resets the widget, removing any existing tags, and reseting the display settings on the add and remove tag functions within the widget, and then adding the tags passed in.

Parameters

ParameterDescription
filemakerAddScriptThe script to be called after a tag is added from within the widget. Calling the tagSubmit(tag) will not call this script, only the entry field in the widget itself will.
filemakerRemoveScriptThe script to be called after a tag is removed from within the widget. Calling the tagRemove(tag) will not call this script, only clicking the remove tag button next to the tag in the widget will.
filemakerClickScriptThe script to be called when a tag label is clicked.
tagArrayA JSON Array of the tags to populate the widget with.
showAddTagsA boolean value which determines whether the tag entry field should be displayed. Pass in 0 if users should not be able to add tags from within the widget.
showRemoveButtonA boolean value which determines wether the remove buttons should be displayed next to the tags. Pass in 0 if users should not be able to remove the tags from within the widget.

Was this article helpful to you? Yes No

How can we help?