Hello
I have a similar request as this post, where I have a repeated section with a dropbox to select from: Recipient or Somebody else. Along side it, there is a SingleField where I like to have copy the Name of the User (People or Group field) into that when [Recipient] is selected, otherwise if somebody else then the singleField is blank for the user to manually type the name in.
PoG field: [RecipientName]
DropBox: [CollectedBy] *this will hide when "Somebody else" is selected
SingleField: [CollectedByUser]
Cal.Value [PoGName] this is to show the Surname, Firstname as in a format.
userProfileLookup(RecipientName,"PreferredName")
What I like to achieve is that, whatever name is selected/typed in the PoG field, then it also replicate or copied over to the [CollectedByUser] within the repeated section, when [Recipient] is selected.
To test it, I have tried to use the following which works only on the 1st entry within the repeated section!
NWF$(document).ready(function(){
var setRecipient = NWF$("#" +varCollectedBy);
setRecipient.change(function(){
NWF$("#" + varCollectedByUser ).val('Test');
});
});
Wonder how to copy the text from a PoG field or calculated field into the [CollectedByUser] field within all wors of the repeated section?