Variable not showing on form in the Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 03:28 AM
I have a variable set used in several items on the Portal to auto load field relating to the logged in user. When testing one of the fields does not populate on the form
but if I submit the request without changing anything then the variable does populate on the RITM.
If the logged in user changes who the request is for the Office shows on the screen and if they then change it back to themselves again it shows
This is my Catalog Client script
Would appreciate any help as am quite new to all of this. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 03:33 AM
It seems you have this logic running in only in case of onChange() event.
If you want the same to happen then you can think of having onLoad() client script as well and just make sure it should not run when 'who is the request for' is empty.
we can discuss more about implementation but before that let me know if above makes sense .
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 03:55 AM
Hi @sushantmalsure , thanks I understand what you say. I created an onLoad script and if I then try it with the "Try It" button it populates but it still does not load in the Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 04:01 AM
Also share the screenshot of this new onLoad() client script , I can help you by looking at it as well 🙂
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2023 06:58 AM
@Pam Walker1 any luck?
if I solved your issue , please mark answer as helpful and accept the solution 🙂
Regards,Sushant Malsure