Hello @F_bio Santos ,

No worries, no bother.

You should be able to leverage the shared variable "$scope.widget_parameters.shared" which in both widgets has been assigned to c.recObject. In the "Modal" create a new property on that object and assign as the ngModel to the textarea element. Whatever value is added to the textarea will then be available in both the "Modal" widget and the calling widget. In the Promise (.then()) of the spModal.open() method, dot walk out to the new property to access the value.

 

HTML of the "Modal" widget:

 

...
<textarea ng-model="c.recObject.textareaData"></textarea>
...

 

 

Client Controller of the widget calling the modal:

 

...

c.openModal = function(){
		spModal.open({
			widget: 'modal-record-picker',
			shared: c.recObject,
			widgetInput: widgetInput,
			scope: $scope
		}).then(function(resp){
			//executes after the "ok" button is clicked
            console.log("textareaData: ", c.recObject.textareaData)
                  
			//process c.recObject data as needed here
			c.server.get({
				action: "ASSIGNTO",
				assignee: c.recObject.value
			})

		})
	}