09 Nov, 2024

Part 21: Working with snhttp to set rating on-load

Add Event handler to capture the params received from catalog page Navigate to Knowledge Article Page Create a Client script Set the name as Set Ratings Set the following script Understanding the code snippet We are going to create a state called rating to store the rating We are Using Table API using snHttp Service […]

1 min read

Part 18: Add event to save ratings

Add Event handler once the record is saved in kb_feedback table Goto Data Resources Select Create Record 1 Goto Events Section Expand Operation Succeeded event (This will be triggered after successful DB operation) Click Add New Event Handler Select Handler Star rating from the scripts section Click Save Update the Script to handle Operation Succeeded […]

1 min read

Part 17: Add rating component

Navigate to the knowledge article page and Add container for rating section Open on knowledge article page from UI Builder. From the Content section, After the Knowledge Content 1 Component. Click (+) to add a component to the container. In the search box, type Container and select Add. Keep the default layout Add Label and […]

1 min read