Adding £ to the front of one column of a matrix table | XM Community
Skip to main content
Solved

Adding £ to the front of one column of a matrix table

  • September 27, 2018
  • 2 replies
  • 17 views

Forum|alt.badge.img+1
Hi all, Is there a way of adding a £ sign to the front of the right hand column? I can see there is an option to do this when using a constant sum type matrix table, however I don't need it on the left column, just the right. Is this something I can do with Java? If so, could someone direct me to the right bit of code please? Much appreciated! !

Best answer by MohammedAli_Rajapkar

Hi @LaurenTaylor Add below code in JavaScript "onLoad" section var input = jQuery("#"+this.questionId+" input[type='text']:odd"); input.before("£"); input.css("max-width","90%");

2 replies

MohammedAli_Rajapkar
QPN Level 5 ●●●●●
Forum|alt.badge.img+20
Hi @LaurenTaylor Add below code in JavaScript "onLoad" section var input = jQuery("#"+this.questionId+" input[type='text']:odd"); input.before("£"); input.css("max-width","90%");

Forum|alt.badge.img+1
  • Author
  • September 28, 2018
Super - thank you @Mohammedali_Rajapakar_Ugam