- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 01:25 AM
I have a custom with label variable in a record producer that is connected to this widget and I am trying to display data from a value that has been set in the client script. (green box)
How to implement it so it will show the value in a text field?
Solved! Go to Solution.
- Labels:
-
Service Portal Development
-
Studio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 02:07 AM
okay
i think i got your requirement now .
you are storing total cost in total cost variable .
If yes then do like this
in client controller add this line
c.data.cost=totatCost;
HTML
<div>
<input type="text" value ={{c.data.cost}}>
</div>
try this and let me know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 01:57 AM
<div>
<input type="text" value ={{c.data.label}}>
</div>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 02:01 AM
Hello thank you for the quick reply.
I have tried it but Its still not showing up. The alerts are working as shown in the image but its not showing the value in the field
More over I have tried to add an alert to see the value but it says undefined.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 02:07 AM
okay
i think i got your requirement now .
you are storing total cost in total cost variable .
If yes then do like this
in client controller add this line
c.data.cost=totatCost;
HTML
<div>
<input type="text" value ={{c.data.cost}}>
</div>
try this and let me know
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 02:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2022 02:15 AM
No worries