How to define clickable hyperlinks in text output controls

Hi,

I have following question - is there a possibility to present to the user a clickable hyperlink in a TEXT control (display only)

e.g. some information is displayed to the user in a textbox
" … for further information see: here"

and the user just clicks on the link to find the information.

I saw the NJX_DOCUMENTLINK in the documentation but this is “only” the link
What I am searching for is an embedded link in a text output.

BR,
Hermann

Hi Hermann,

in a TEXTOUT control, you can set straighttext=“true” and then have “html-pieces” in your text.

Best Regards,
Christine

Hi Christine,

I tried with TEXTOUT and set straighttext=“true” but unfortunately it’s still text only - no link :cry:

What’s wrong?

BR,
Hermann
2015-06-16_1508.png

Hi Hermann,

sorry, I mismatched true and false.
Working example:


<textout valueprop="mytextout" width="400" height="300" straighttext="false">
</textout>

and then in the Natural code for instance


DEFINE DATA LOCAL
1 MYTEXTOUT (A) DYNAMIC
END-DEFINE
*
COMPRESS 'Text with link <a href="http://www.yahoo.com">The Link is here</a>' INTO MYTEXTOUT  
*

straighttext=true means “not interpreted by the browser”.

Best Regards,
Christine

The question is:

what do you expect to happen when the user clicks the link ?

If you trigger external content and don’t add a target="_blank" to the hyperlink the new page will overlay the NJX session without a way back.

Or do you expect the NJX session to react on the link ?

Thanks - it works :smiley:
I’ve already added target=_blank as the link should open in a separte window (external content)

BR,
Hermann