Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Register button on event widget

Rosy14
Kilo Sage

Hi,

I want to add  seperate regiter button on every event. {{::item.data_sys_id}} and data.url rerturning correct value but in href it is not correct url. how to pass the script value in href?

 

<p class="end-date">
                {{::item.date_line_two}}
                {{::item.data_sys_id}}
              </p>
            <div cd-html html="{{::item.html}}" item="item" disable-tracking="c.data.isContentPreview" action="clickAction" />
            </div>
            <!--RD-->
            <script>
              function getUrl(){
            	var url = "{{data.eventUrl}}+{{::item.data_sys_id}}";
              }
            </script>
							 <a href = "javascript&colon;getUrl();">
      <button class="btn btn-primary action-btn pull-right">
     Register
      </button></a>

 

0 REPLIES 0