Href in template with event onclick

Hello , I have in my form a text field with ip address. I want a link which open a new tab when I click in this link with ip address. How to do that ?

I tried something like that but it doesn’t work:

{view: "template", height: 30, template: "<a href=\"#\" onclick="+window.open($$('IpAddress').getValue())+">link to test</a>" },

with ‘IpAddress’ is the id of text field in my form.

Any ideas ?

Thanks

Oups , The HTML code is execute when I post the line with “href” link :frowning:

To change the inner HTML code dynamically, you can create a new proto.UI element with a predefined part of the link. Check the snippet:

http://webix.com/snippet/867662ac

Perfect ! Thanks :slight_smile: