
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2019 01:55 AM
Hello,
I have a task wherein when a user clicks the 'Resolve' button it will prompt a separate text box that requires them to enter 'Additional Comments' and it will reflect in the additional comments widget which is not located in the same widget as the 'Resolve' button. I am new to portal development so any help is much appreciated. Thank you.
Kind Regards,
Raphael
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2019 06:18 PM
Regards,
Michael.
P.S. If my suggestion helped then please mark as helpful and/or correct so other community members can benefit from this information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2019 03:20 AM
Hi,
i think you should try on same widget only.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2019 03:31 AM
Hi,
You can use Broadcast events to achieve this requirement.
Just you have to do is
1. Create a onClick function on Resolve button.
2. Set a flag or temporary variable on onClick function and pass it in different widget using Broadcast.
3. In another widget, receive that variable value and then you can manipulate accordingly.
Let me know if you have any other questions related this.
Mark Correct if it helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2019 06:09 PM
Where should I add the onClick function in the server script or client script? Our resolve button already has an existing ng-click function which is when clicked, it will call the function that resolves the ticket.
HTML:
<button type="button" name="resolve" ng-if="data.canResolve == true" class="btn btn-success" style="margin-top:10px;width:90px" ng-click="c.action('resolved')">${Resolve}</button>
Server and Client Script:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2019 06:18 PM
Regards,
Michael.
P.S. If my suggestion helped then please mark as helpful and/or correct so other community members can benefit from this information.