hello there,
I have a tricky question and I have made an example nintex-form (classic) so I can show you my problem.
For my example I have following controls:
1. Number (it is a specific number which is unique)
2. Every number is assigned to a group of animals
3. and every animal has specific values (name, born on, colour) and there can be more than one of its kind (therefore a repeating section)... it is just an example and I couldnt think of something better
important: the data of the repeating section is saved to a multiple lines field (I already connected them).
Â
Â
Â
At first I create an item:
Â
Â
and in the list it looks like this:
Â
Â
So what do I want?
I have a wiki page and on that page I have a webpart where users can fill out a NEW form (they cant see the list, they can just fill out the form).
If a user enters a number (in my example 1)... then via some formulars the values from the list should be autofilled with javascript so that the user can see the animals an then in the repeating section all of the other values.... and there is the problem.
I know how to do that with normal textboxes:
Â
create a formular field and create a lookup with an JS function:
"setAnimals(Nachschlagen("Repeating Section", "Number", Number, "Animals"))"
..assign that textbox a JS Var (varAnimals)
Â
and put the function into the settings -- custom JS
Â
function setAnimals(Animals) {NWF$('#' + varAnimals).val(Animals).trigger('blur');}Â Â Â
And that works fine.
...but I dont know how to do that with the repeating section...I got the informations in the list so i could look them up... but... how?
another important note is that the user can change the numbers... so the values should change appropriately.. if he enters a "2" then other values should show up (that already works with textboxes, date, dropdowns etc...hopefully it is possible with repeating sections aswell)
and ofcourse thats just an example .. my orginal form is way to big and confusing so i tried to reduce it to the essentials
regards,
Alex
and because I dont know how to tag a person I am going to try this: @MegaJerk
Best answer by Aleximo
View original