How can i add select option dynamically from suffixAction ?
I have a select field with one option initially. I have also added a suffixAction to pick a record and trying to add new option from picked record dynamically to select field. but can't do it. can anyone help please?
4 Replies
You are in an action so I suspect you need to get out of the action try/:
$set('../../union_id', 702);
thanks. $set('union_id', $union->id) is working but new union is not adding to option that is my problem.
Why not use a select with a create form?
You'd need to check how we do it there and reverse it back if it's possible
create form is creating a option of a relationship select. but I'm trying to pick an option and my select field has no relationship.