Variable not showing on form in the Portal

Pam Walker1
Tera Contributor

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

PamWalker1_0-1680690150728.png

 

but if I submit the request without changing anything then the variable does populate on the RITM.

PamWalker1_1-1680690184191.png

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 

PamWalker1_2-1680690358848.png

 

Would appreciate any help as am quite new to all of this. Thanks

6 REPLIES 6

sushantmalsure
Mega Sage
Mega Sage

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 .

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure

Pam Walker1
Tera Contributor

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

Also share the screenshot of this new onLoad() client script , I can help you by looking at it as well 🙂 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure

@Pam Walker1 any luck?

 

if I solved your issue , please mark answer as helpful and accept the solution 🙂

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure