Portlet Factory, Version 6.1.2
Unique Client-side ID builder
The Unique Client-side ID builder creates a method to compute a unique ID value, and attaches to the id attribute of a specified element a call to this method.
Use this builder to identify a page element and later locate the element from client-side JavaScript code. The builder supports use both outside and inside repeated regions. If the coordinator detects that the target element is inside a repeated region, it displays a message to this effect, and identifies the active loop and counter variables for this region.
Making a section visible
One use of this builder is to set up a section to be made visible when a button is clicked. In this builder, associate a unique ID with the section, and use a Button builder with the Action Type input of Run a script to show the section. Assuming that the name of the Unique Client-Side ID builder call was sectionID, the following code makes the section visible:
document.getElementById('${MethodCall/sectionID}').display = 'block'
Parent topic: Builder help
- About using the builder call editor
The builder call editor allows you to specify all the input values to a builder call.
- Unique Client-side ID builder inputs
This topic describes the Unique Client-side ID builder inputs.
Library | Support |