Hello
I have setup a Rule within the repeated section to disable the field if the [currentRowNumber] is bigger than the ItemNumber which works fine but when the dropdown [ItemNumber] is changed then the rule does not get refresh/reactivated.
For example: I set the ItemNumber to 2 and then add 3 new rows within repeated section; in this case the 3rd row will be disabled (at least the intput field). However, when I update the ItemNumber to 1 then the row 2 and 3 are still editable ... unless I remove the 3rd row - which then triggers 2nd row to be disabled.
My thoughts is to have kind of a .onChange mechanisem to refresh the rule when ItemNumber has changed.
Scenario:
[ItemNumber]: 2 (dropdown)
[currentRowNumber]: currentRowNumber(ItemDescription)
[RepeatedSection]: [ItemDescription] field has a rule (greaterThan(,[currentRowNumber).[ItemNumber]) to disable the field.
It works when ItemNumber is selected a higher number and then you keep adding the additional rows. But when you have 4 rows already and then change the ItemNumber to 2 > then the repeated section does not get refreshed and therefore ALL the rows are still available. Whereas ideally it should disable the bottom 2 fields.
Is this possible?
A simple test as following works only to clear the text within the field.
Is there a way to say "update, refresh" the field.... instead?
NWF$(document).ready(function(){ var obj = NWF$("#" +Items); obj.change(function(){ NWF$("#" + ItemDescription).val(''); }); });