Ridge 0 Posted September 19, 2014 Report Share Posted September 19, 2014 Hello, I'm trying to enter an email from an email list (list from file), the same email needs to be entered twice to confirm it was entered correctly. However I can't find a current list position parameter. I've tried using $list position inside of $list item, this doesn't work as it enters the next email in the list and not current one. I've also tried using previous list item, however this also entered the next email... ui open file("Emails", #emails) add list to list(%emaillist, $list from file(#emails), "Delete", "Global") set list position(%emaillist, 0) reset account("Any") type text(<first name field>, $account data("First Name"), "Standard") type text(<last name field>, $account data("Last Name"), "Standard") type text($element offset(<email field>, 0), $next list item(%emaillist), "Standard") type text($element offset(<email field>, 1), $list item(%emaillist, $list position(%emaillist)), "Standard") I can't seem to figure out how to enter the same email twice from a text file... Quote Link to post Share on other sites
UBotDev 276 Posted September 19, 2014 Report Share Posted September 19, 2014 You should have a variable which will hold your list position, and increment it manually when you want to go to next list item. Then you just pass that value to "$list item" to retrieve a specific item... Quote Link to post Share on other sites
Bot-Factory 602 Posted September 19, 2014 Report Share Posted September 19, 2014 ui open file("Emails", #emails) add list to list(%emaillist, $list from file(#emails), "Delete", "Global") set list position(%emaillist, 0) reset account("Any") type text(<first name field>, $account data("First Name"), "Standard") type text(<last name field>, $account data("Last Name"), "Standard") set(#tmp, $next list item(%emaillist), "Global") type text($element offset(<email field>, 0), #tmp, "Standard") type text($element offset(<email field>, 1), #tmp, "Standard") Quote Link to post Share on other sites
drhum 3 Posted September 21, 2014 Report Share Posted September 21, 2014 Hi Ridge, any update so far if this has been working already for you? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.