Can redirect url have new values prepopulated on opening existing record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 11:35 AM
I have requirement in which from link(dynamic name) present in html field I have to open a existing record (I have sysid of that record) but on opening itself change value of 1 field (let's call that field designation) to link name,no commit to database but just on ui designation should display link name from where this request came.
I can think of dividing solution in 2 parts.
1. Redirect using sysid which works fine.
2. To change value of designation field which I am unable to do, I can't use on load client script since value is dynamic.I can only think of if by any way in url itself I can send this field dynamic values.
Any suggestions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 12:38 PM
Hi @vk_23
Try this
1) Write a display business rule to fetch/calculate that dynamic value, and store is in the g_scratchpad variable.
2) Write a on load client script to fetch that dynamic value from the g_scratpad variable and update the field with the dynamic value.
You can use this LINK to learn how to use display business rules with on load client scripts.
Mark as helpful 👍
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 11:18 PM
Approach mentioned is not doable reason, It's user action on data element which is part of blob data(nothing is committed in db,data only present in presentation layer) where we want to achieve this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 01:47 PM
Hello,
It sounds like you'd need to instead use something like a client script to load the link into this field which allows you to build it via script and append any dynamic information to it. You're saying you can't use onLoad, but how is the value changing? If it's based on field changes the user makes, then the link could be updated with an onChange client script.
Otherwise, you'll need to provide more information as to why an onLoad client script wouldn't work if the onLoad client script is taking data from the record to determine what value/parameter to add to the link.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 02:27 PM
Hello Allen,
Let me explain complete use case,might be helpfull in understanding more as you might suggest something different.
Form has 2 fields Designation (String field) and Details(Html). User input Designation and click custom button which in turn call api and fill data in Details field.
Now details field have data like name, email etc which I make them hyperlink using href as next ask is on clicking name (hyperlink) designation should have name or what ever data user clicks got populated.
I thought of reloading same form on click of this data element but no idea how can I pass this dynamic values in designation field .