Hello all,
I want to get the name of the attached file into the text field.
I have referred several documents but they are not solving my issue. I don't want to use list box, I want the name in text field.
Thanks in advance.
Gopi
Solved! Go to Solution.
Views
Replies
Total Likes
Ok,
you should have tell me before.
Add this script to the Add button of your repeating table row.
It will look for the name of the attchment with the same index number as the current row.
var o = event.target.dataObjects;
Texfield.rawValue = "";
if (o !== null) {
Texfield.rawValue = o[this.parent.index].name;
}
Views
Replies
Total Likes
Hi,
you can use JavaScript to get the names of attached files:
var o = event.target.dataObjects;
var n = "";
Textfield.rawValue = "";
if (o !== null) {
for (var i = 0; i < o.length; i += 1) {
n += o[i].name + "\n";
}
}
Textfield.rawValue = n;
Hi radzmar,
Your code was helpful.
But I want this functionality for for multiple lines which will get added dynamically. When I'm adding the row dynamically it is appending the data into the same textfield instead of the next. It will be clear from below image, Here I have added second row dynamically by clicking on "+" button and attached the file but it is showing it in the text field of 1st row.
Thanks in advance and waiting for your response.
Views
Replies
Total Likes
Ok,
you should have tell me before.
Add this script to the Add button of your repeating table row.
It will look for the name of the attchment with the same index number as the current row.
var o = event.target.dataObjects;
Texfield.rawValue = "";
if (o !== null) {
Texfield.rawValue = o[this.parent.index].name;
}
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies