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

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

  • 27 September 2018
  • 2 replies
  • 4 views

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!

!
icon

Best answer by MohammedAli_Rajapkar 27 September 2018, 18:36

View original

2 replies

Userlevel 7
Badge +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%");
Super - thank you @Mohammedali_Rajapakar_Ugam

Leave a Reply