- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2016 11:47 PM
I know. I know. We don't do that.
However . . .
We have just jumped from Dublin to Geneva and all our users are crying about the tiny text boxes in the work_notes / comments fields.
And since the white space is never going to be used by "form-field-addons" for these particular fields, in this particular form, I thought I'd fix it with a short client script using prototype.
When (if) it stops working after the upgrade to Helsinki I can apply another fix at that point. It's not the best solution .. but it looked easy enough for a quick win
So here is what I wrote :.
But it didn't work.
I have set glide.script.block.client.globals to false, and I'm pretty certain I am targeting the right elements
Does anyone have any ideas why this didn't work, or a better solution to this issue?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2016 12:51 AM
The issue was with the selectors.
Both prototype and jquery can't handle id selectors that have periods (.) in them.
To get the selectors to work you need to escape (use \) the special characters. This also applies to id's that have # and : in them.
The correct prototype selector statement is :
$$('#element\.incident\.comments div').each( ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2016 12:51 AM
The issue was with the selectors.
Both prototype and jquery can't handle id selectors that have periods (.) in them.
To get the selectors to work you need to escape (use \) the special characters. This also applies to id's that have # and : in them.
The correct prototype selector statement is :
$$('#element\.incident\.comments div').each( ....