
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Hello Folks,
Hope you all are doing great and enjoy learning!!
This is Blog is to explain following Use case.
Ask:
Display message as per below image that contains link and formatted with color when particular field value is selected on Catalog view/Portal. This message should be clearly always visible to user when selects field value. The message contains KB link that guides user on process. Please note that this is dummy message.
Technical Analysis:
1. First way that clicked into mind is to use "addInfoMessage" in that we can embed links. But it does not fit in this case as we need user should easily notice the message. By using addInfomesage chance are message may get lost or there are are multiple messages where user can get distracted and miss required message. So it is not good option to use in this scenario.
2. Second way that can think on to use g_form.showFieldMsg but unfortunately can't add link using this function.
After all this analysis, finally came with solution that fits into this ask and easy to apply as follows 😀.
Final Solution:
1. Create a variable of type Rich Text Label on required catalog item.
2. Mention the message in Rich Text (HTML Editor window) contain links/images.
3. Provide the appropriate name to this variable.
4. Make sure that to provide right order to correct placed this message as per your form layout.
5. Save.
6. Create Catalog UI Policy on same catalog item. Add the required condition and other required details. Make sure that "Applies on catalog item view" checkbox is checked. Save.
7. Now go to related list Catalog UI Policy Ui actions.
8. Click new. Select the created Rich Text Variable. Make Visible checkbox true. Rest leave alone. Submit.
9. Test properly.
Using above way we found to solution to fulfills this ask and it is working as expected.
If you get this kind of requirement, hope it helps you to achieve expected outcome😊. Please mark helpful/correct if you find useful.
Regards,
Priyanka Salunke
- 765 Views
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.