Geolocation
- Last UpdatedJun 25, 2024
- 1 minute read
Use scripts to set and get values for the properties of the Geolocation control.
Basic
|
Property |
Scripting Supported |
Example |
|---|---|---|
|
Name |
Yes Writable Readable |
To set the property control.findById("ID").tagName = "Value for Name"; To get the value of the property control.findById("ID").tagName; |
|
Description |
Yes Writable Readable |
To set the property control.findById("ID").description = "Value for Description"; To get the value of the property control.findById("ID").description; |
|
Button Text |
Yes Writable Readable |
To set the property control.findById("ID").buttonText = "Value for Button Text"; To get the value of the property control.findById("ID").buttonText; |
Appearance
|
Property |
Scripting Supported |
Script |
|---|---|---|
|
Enable |
Yes Writable Readable |
To set the property control.findById("ID").enable = true; To get the value of the property control.findById("ID").enable; |
|
Visible |
Yes Writable Readable |
To set the property control.findById("ID").visible = true; To get the value of the property control.findById("ID").visible; |
|
Label Position |
No |
Not Applicable |
|
Label-Control Area |
No |
Not Applicable |
|
Alignment |
No |
Not Applicable |
|
Display Mode |
No |
Not Applicable |
|
Button Size |
No |
Not Applicable |
|
Image Path |
No |
Not Applicable |
|
Image Position |
No |
Not Applicable |
|
Show as Link |
No |
Not Applicable |
|
Custom Style Sheet Identifier |
No |
Not Applicable |
Advanced
|
Property |
Scripting Supported |
Example |
|---|---|---|
|
ID |
No |
Not Applicable |
|
Form Button |
No |
Not Applicable |
Scripts
|
Property |
Scripting Supported |
Example |
|---|---|---|
|
Name |
Yes |
return "Value for Name"; |
|
Description |
Yes |
return "Value for Description"; |
|
Enable |
Yes |
return true; For more information, see scripting guidelines for Enable property. |
|
Visible |
Yes |
return true; For more information, see scripting guidelines for Visible property. |
|
On Geolocation Load |
Yes |
To get the value of the property control.findById('T1').value = control.latitude; control.findById('T2').value = control.longitude; |