Calling Script include function on "Condition" field in Mobile UI rules.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 05:36 PM
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.
  
- Labels:
-
Mobile app configuration
-
Now Mobile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2024 04:25 PM
Hi @Zack Hilacan1 , were you able to get an answer to this? Wondering if this is possible too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2024 09:18 PM
Sorry, I was not able to continue my investigation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 07:11 AM - edited ‎01-15-2024 07:12 AM
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()