The CreatorCon Call for Content is officially open! Get started here.

Link in the table column

sowmyaj
Giga Expert

Hi All,

                  I have a requirement to have a column in the table which should be of type link/button and that link/button will be linked to store few data in another table.

Below shown table is my "Training" table in that I need to have a link "Register".   How can I do this?

Untitled.png

Thanks,

Sowmya.

3 REPLIES 3

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Sowmya,



You can create a field on your table with a type URL and store the link there. Then you can personalize the list view and add that field on the list. This should do it.



Regards,


Sergiu


Hi Sergiu,



                  My requirement is as shown below. where "Link" column should have a "Register" button/link for all the new entries too(automatically get added). Once I click on register button/link the status of another table will get set into "Enrolled".     I tried with type "URL" but I think I can't achieve below requirement using "URL" type. So, can you please look into this and help me out.



                  Untitled.png



Thanks,


Sowmya


Yes, you can still achieve that with a URL type field. This field will be present automatically on all new records for that table.



Have a look at this example:



Create a new URL field, add it to your form, Personalize Dictionary on that field, check the "Calculated" checkbox, and put the following in the "Calculation" field:




<span>  


javascript:"</span><a class="jive-link-external-small" href="https://community.servicenow.com/external-link.jspa?url=https://demonightlyus.service-now.com/nav_to..." rel="nofollow" target="_blank">https://demonightlyus.service-now.com/nav_to.do?uri=</a><span>" + current.getLink(true)


</span>



Replace "demonightlyus" with your instance.



from this post:



Display URL link on form



In your case when you add that field to the list view, it should display the link you want.



Regards,


Sergiu