bry422 - Wednesday, September 14, 2016 1:28 PM:
Hello -
I have a form for Customers in Aras. One of the fields is called "Web Site". I will be setting this value via C# using the Aras API. Rather than just have the value static text, I'd like the user to have the ability to click on the text and then be sent to that customers home page.
Should the "web site" field type be of type text or does it need to be type HTML?
And, based on that, what would the line of code look like to set this value using the setProperty() method?
customer.setProperty("web_site", ???);
Thanks,
Bryan
edonahue - Friday, September 23, 2016 5:21 PM:
Hi bry422,
If you are using C# to set a property value and the user won't be entering or modifying data, I recommend using an HTML field to display the link. The sample code below shows how you might retrieve property values from the context item and then display a link.
Please note: The above JavaScript should be wrapped in a <script> tag and come after the target <a> tag in the HTML field's source.