- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 08:49 AM
I have 2 tables,
1. program , it contains portfolio and sub-portfolio
2. Change request, it contains portfolio and sub-portfolio,
common number between teo tables is project number field
here , i need to get value from porject portfolio to change request portfolio.
i have written script include and client script , but it was displaying the after form got saved, but i need to display the portfolio and sub-portfolio values for new form.
script include:
Client script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 09:07 AM - edited 02-09-2023 09:07 AM
Hi,
You need to change your client script from onload to onchange, and make it run onchange of u_program_name field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 09:07 AM - edited 02-09-2023 09:07 AM
Hi,
You need to change your client script from onload to onchange, and make it run onchange of u_program_name field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 09:15 AM
But I need values for new record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 09:16 AM
It will work for new record as well. When you add value to the field it will run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2023 09:36 AM
As suggested by Anurag, change the client script from onLoad to onChange of u_program_name field.
Now if the record is new then there is no value in u_program_name. That's why your script is not running onLoad.
Either you set a default value of u_program_name to run the script onLoad. But if you will change the value of u_program_name field before saving, it will not update the fields.....