0

I am working with Sharepoint 2013, and I have a list of items that have a client id. These client ids are references to a database referenced by another group. I am wanting to pull the string information from a list item to populate a variable in a URL for a Custom Action. Please see example for clarification.

enter image description here

I want to extract the actual ClientID to insert into a URL when clicked. (i.e. https://mywebsite.com/customerno=[ClientID_from_List_1]/showall.aspx

So if I clicked CASABONITAS ClientID in Sharepoint it would open a new page with the URL being https://mywebsite.com/customerno=345678/showall.aspx

I have done some searching and cannot find any customized tokens that can be used for extracting this information, any assistance would be greatly appreciated.

2 Answers 2

0

If you have to do it in a Custom Action, you can retrieve the Selected Item ID and then pass that in to your Custom Action JavaScript block and retrieve the 'ClientID' as a property.

Here's a post that does something similar: Field Value Custom Action

As another potential solution: You could probably just create a Hyperlink Column and use a Workflow to set the value.

0

There is no such tokens that could get information from your custom filed value. You need to use some custom js to achieve this.

If you create custom action through sp designer, you can use javascript: /* put your js here */ in the "Navigate to URL" box.

Besides, here is an easier option for you: use calculated column instead.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.