- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2017 08:19 AM
I am building a form with annotations on it to organize the fields on a form.
In order to prevent users from hiding the annotations permanently, I need an on load client script that turns annotations on when the form is loaded
This is how I need the annotations to appear
I have written a client script as follows:
function onLoad() {
//Find all annotations and make sure they are shown
$$('.annotation-row').each(function(elmt) {
elmt.setStyle({
display: 'block'
});
});
}
When the script is active, it truncates the annotations as follows:
Any advice?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2017 07:05 AM
The answer is to modify the script so the display: 'block" says display: 'table-row'
function onLoad() {
//Find all annotations and make sure they are shown
$$('.annotation-row').each(function(elmt) {
elmt.setStyle({
display: 'table-row'
});
});
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2017 08:22 AM
Edit your form layout and move the annotations outside of any 'splits' you are using.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-17-2017 09:41 AM
Thanks for replying. The Contact Details annotation is already outside any splits in a single column block.
I'm thinking the part of the script that sets the style to block is truncating the annotation to be only as long as the text. I don't know what to use to set the style.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2017 07:05 AM
The answer is to modify the script so the display: 'block" says display: 'table-row'
function onLoad() {
//Find all annotations and make sure they are shown
$$('.annotation-row').each(function(elmt) {
elmt.setStyle({
display: 'table-row'
});
});
}