Scripting Issue - second script prevents first script from working
A colleague is having a scripting issue where one appears to stop the first from working.
The first one (const columnsToRenderAsHTML = [1];) renders the field as HTML while the second one changes the cell color depending on the text.
Each works fine on its own, but when the two are together only the second one functions.
Excuse my ignorance if this has a simple answer, but I'd genuinely appreciate the Community's assistance here.
Robert M Chapple
Posted 1 year ago·Last reply 11 months ago
4 comments
DRay
·11 months agoHello TheLivingBubba,
I’m following up to see if the solution offered by Jeremy worked for you.
If so, please click the 'Accept as Solution' button on their post. That way others with the same questions can find the answer. If not, please let us know so that we can continue to help.
Thank you.
DRay
·1 year agoHello TheLivingBubba,
I’m following up to see if the solution offered by Jeremy worked for you.
If so, please click the 'Accept as Solution' button on their post. That way others with the same questions can find the answer. If not, please let us know so that we can continue to help.
Thank you.
Jeremy Friedel
·1 year agoHi TheLivingBubba ,
The first code snippet is not a full script, it appears to be activating the older community plugin described here.
This plugin does not seem to be compatible with the widget script.
The method the pivot is being modified here is somewhat more complex than required, the recommended method for this, which may not be broken by the community plugin is to use the Pivot 2.0 cell style scripting method, which does not rely on direct HTML modification.
An example script using Pivot 2.0 is below:
Any CSS style parameter can be modified not just color, another example is below:
DRay
·1 year agoHello TheLivingBubba,
Thank you for reaching out. I see your question hasn't gotten a response yet, so I'm asking internally to try and get you an answer.