I want to show rich text label after template upload
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2025 05:03 AM
Hi ,
I have one form where need to upload template and that template has factory id column so if factory id does not exist it should show factory id not found and that part is working correctly , i have done that using script include and that is not client callable , now one more requirement is if factory id not found then it should show message to user please click here to raise request and here word should link to other catalog item .
so what I did is I created rich text label and there I have inserted the catalog item link and i was trying to achieve this with on change of upload button if validation error.includes ('Factory not found') then show rich text label but that is not working as expected it's working second time when i am uploading template again because that time validation errors loaded but that should not be the case and same reuirement if factory is not linked to company. only label will change
please let me know if anyone has worked on similar requirement . please find the sample code for reference
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2025 03:04 AM - edited 10-01-2025 03:05 AM
@Dipali_Pawar Display BR runs on load and stores some value in g_scratchpad.
That value does not change until the form is loaded again i.e. it may not work on change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2025 03:10 AM
yeah so what i am thinking is check the condition if attachment errors includes Factory id not found and storing to g_scratchpad and pass it in on load script.
