Pass a value from Record producer to Custom variable widget during OnChange Event
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 07:53 AM
Here is my requiremet,
I have a single select dropdown (select box) variable on record producer with 50+ choice list values. Each choice value in the list has it's own formatted message which we have show right below the choice field when user select choice.
I'm thinking that for this use case creating 50+ rich text label variables and adding 50+ UI polices is not a right approch.
I tried creating 1 rich text label varibale and used g_form.setLabelfor();. It's only working on front end (RP ESC portal view). but it's not working as expected on target record on variable editor.
I tried making use of html type variable, but when I'm making a varibale readonly i'm not able to set a new value with help of client script in it using setValue().
So I thought to use custom varible with adding widget or Macro to the RP. But i don't know how to develop this approch can someone help me.
Majorly i want to know how to pass any value from RP to that custom widget so that dynamically i can populate that rich text message in both frontend and target record.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 02:24 AM
Hello @Kiran Maruthi
Could you please try this $scope.page.g_form.getField("IO:" + c.data.rpConfig.searchVariable) in your widget and pass your record producer variable name .
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You