- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2018 05:22 AM
Dear all,
I am trying to display a clickable link on my task form in order to allow user to jum to a knowledge base article.
In have try to add a field of type URL, but the problem is that it shows the whole URL syntax instead of only the text needed.
I could not find a way to display just the text.
So I open my task form in design and add an Annotation field with HTML format. If I past directly in my generated link to my KB article, it works as expect and I get only KB45357 display and when I click I jump to my item
Q1 :
The question I have now is that has my annotation URL cannot be the same all time , how can I access from script the annotation field in order to change the link from script ?
Thanks for help
regards
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2018 04:15 AM
we find the solution by implementing the Attached knowledge field into a form and associate a knowledge article to a task
thks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2018 05:59 AM
You can leave the URL field as is and add a onload client script that reads the URL field to fill the annotation.
Annotations can hold HTML elements. So add a DIV tag with an ID that you can use in the onload script to target it, read the content from the URL field and load the content that you want in the DIV tag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2018 06:13 AM
I do not undersdstand your point :
you mean that :
I keep my annotation on my form
Then from an onLoad script I access the annotation field and filled the text I want from my script ?
But this is not working in my scenario because I am creating a Task from a business rule script and during the task creation I build up a KB article link( whcih can be differnet ).
And this is this link that I need to display on task from in order that user getting the task can click the link
Any idea ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2018 06:21 AM
Since you seem to already have the logic of generating URL, just move that to the client side in a client script. Rest of the information in my earlier response is still valid. Add a DIV tag with ID and populate the URL in it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2018 06:26 AM
you mean as picture below :
But could you sho how can I access my div element from its id from client script ?
Knowing that the URL is build in a Business Rule from server side
thanks for your sample