Calling Script include function on "Condition" field in Mobile UI rules.

Zack Hilacan1
Mega Sage

We are trying to recreate the functionality of the "Kb Category page" widget where: when the user opens the knowledge article and you go back to the home page it will change color meaning it has been opened/viewed by the current user.

To achieve this I created a Mobile UI Rule for a Card with kb_knowledge fields where the Title will change its color if the number=number. A script includes is then created that would return a single Knowledge Number from kb_use.

Upon calling the function from script include it is not working, or is it just not possible to call script include in Mobile UI rules.

MV2.pngMV1.png

  

3 REPLIES 3

Eric20
Tera Contributor

Hi @Zack Hilacan1 , were you able to get an answer to this? Wondering if this is possible too.

Sorry, I was not able to continue my investigation.

Thomas Wright1
Tera Contributor

Not sure if this will work, but you could try including that entire condition line as javascript rather than only part of it. I've never seen part of the line as javascript like that on a reference qualifier which is where I'm familiar with this usage.

i.e. rather than

 

text_07=javascript: new blahblah()

 

try:

 

 

javascript: "text_07=" + new blahblah()