January 18, 2018 at 21:18 #19371
I’m having a couple of issues with Custom JS.
Both issues were working in DFFS Backend v188.8.131.52, but not in v184.108.40.206 (Beta version fully installed today).
1) I can’t type anything in the Custom JS script area. I can paste, but not type.
2) I am using Custom JS to change the header text of a couple of fields.
Here’s an example of the code I’m using:
$(“#sbs_Field__x0032_DownExec”).find(“td.ms-formlabel H3”).text(“2 Down Exec”);
January 20, 2018 at 10:13 #19398
Does the syntax highlighting work in the code editor? – add a screenshot so I can see how it looks.
Which browser are you using? – I changed to a newer version of the ACE code editor and it might be a problem related to that. Can you bring up the dev console (hit F12 > Console) and see if there are any errors?
Not sure what you mean – doesn’t this snippet work anymore?
January 25, 2018 at 01:13 #19476
1. I attached a screen shot of the Custom JS tab.
There were no errors in the dev console.
I use Internet Explorer 11.
2. The snippet worked on 220.127.116.11, but it’s not working on 18.104.22.168.
January 25, 2018 at 18:18 #19480
I noticed today that I also can’t add anything in the Custom CSS box by typing, but I can paste and delete code.
January 25, 2018 at 22:41 #19495
It looks like this version of ACE doesn’t like IE in IE 8 mode. Are you able to try using another browser – like Google Chrome?
If not, try hitting F12 and select “Emulation” and set “Document mode” to IE 9 or above.
January 25, 2018 at 23:17 #19497
It did not like changing the Document mode at all. It cause A LOT of errors. Tried setting it to 9 and 10, errors happened both times.
I could edit the fields in Chrome. However, IE 11 is the company standard and everyone uses it. So I still have the header (formlabel) not picking up the change in text.
January 26, 2018 at 00:09 #19499
You can copy the files from the “/DFFS/ace” folder in the old release and overwrite the files in “/DFFS/ace/src-min-noconflict” in the new release. This will load v1.2.6 of Ace and it should most likely work better.
Please let me know how this works out.
January 26, 2018 at 04:04 #19501
That did it!
There was one file on the new version that wasn’t on the old version, ext-themelist.js. Do I need to do anything with it or just leave it there?
Thanks for all your help!!
January 26, 2018 at 09:26 #19503
I’m glad it worked. I’ll see what I can do about it in the next release. The ext-themelist.js isn’t currently used so you can just leave it.
You must be logged in to reply to this topic.