0

I have a custom list that I need to create a quiz. My issue is that all the columns of all the questions is long, which makes my column too lengthy?

I have actually found results to using JavaScript. Reference to the result: Referencing to this link But however, i realised that when I opened a new IE window, the column name is referred back to the original name.

So I would like to know if there's any other possible ways?

Thank you! :)

1
  • Hello, You can check JavaScript and replace code or method that doesn't compatibility with IE. Or you can use JSlink to replace header value. For JSLink this might be help you sharepoint.stackexchange.com/questions/79819/… Commented Jun 21, 2018 at 4:33

1 Answer 1

0

You can use the following code:

<script src="//code.jquery.com/jquery-1.11.3.min.js" type="text/javascript"></script>

</script>

<script type="text/javascript">

$(document).ready(function(){

//alert('b');

$('#diidSort12Priority').text('aaa');

})

</script>

Note: you need to change '#diidSort12Priority' to the element id of the column. you can find the element id via IE F12.

If you are using modern view for your list, the code should not work as modern view is not supported for JavaScript code currently, you need to use Classic view.

2
  • Hey yes, this is the script that I've used. but how do i know that I'm on the classic view or the modern view? Commented Jun 21, 2018 at 8:22
  • you can check the vedio: youtube.com/watch?v=Qb095SsFG_w&feature=youtu.be about them. Commented Jun 22, 2018 at 3:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.