Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

HTML Link on UI Page

erck
Tera Contributor

Im not able to display html links on the ui page.

Im trying to create a UI page with an input field on top that whenever it changes, results are displayed under it. 

 

us_results

is the array containing objects. Each object contains a 'result' with a string that is html code. 

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
	
	<g:evaluate var="jvar_grr" object="true" jelly="true">	
		var cs_sd = jelly.sysparm_sd;
    </g:evaluate>

	<g:evaluate var="jvar_grr" object="true" jelly="true">

		var us_results = [{"result":"<a href='https://google.com/' target='_blank'>Services</a>"}];
    </g:evaluate>

	<input id="${jvar_name}" type="text" name="${jvar_name}" value="${cs_sd}" onchange="executeThisClientScript()" />

    <g:ui_form>
        <div class="row">

			<div class="col-md-12">
                <ul style="list-style-type: none;" id="checkedItems">
							
					<j:forEach items="${us_results}" var="jvar_field_name">
                        <li>
							<g:evaluate jelly="true" object="true" var="result">
								var result = jelly.jvar_field_name.result;
								result


							</g:evaluate>

							<g:ui_checkbox value="false" name="${field_id}" id="${field_id}"/> ${result}

								
                        </li>
                    </j:forEach>	

                </ul>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="pull-right">
                    <g:dialog_buttons_ok_cancel ok="confirm()" ok_type="submit" cancel_type="button" cancel="return onCancel();" />
				</div>

            </div>
        </div>
    </g:ui_form>
  
</j:jelly>

 

1 REPLY 1

erck
Tera Contributor

This is what it currently looks like , why does it not show up as hyperlinked ?

 

 

 Screenshot 2024-09-10 at 12.40.11 PM.png