I am currently attempting to retrieve the values of hidden input fields that are dynamically added when the user clicks on the "insert more" button.
If you'd like to view the code in action, you can visit this StackBlitz link: get hidden input value
I have tried using the patchValue()
method within the linkTo()
function, but unfortunately, I am encountering an issue where the console displays empty strings upon clicking the "Get Values" button.
Console Output:
loginFromArr: Array[2]
0: Object
name: "p1"
password: "p235"
selectedLinkTo: ""
1: Object
name: "876548"
password: "43545t"
selectedLinkTo: ""
As you can see, the value for selectedLinkTo
is empty in the console output.