i have a nintex form with repeating section. This section has some text fields and a choice field. I would like to change the color of the row based on the value selected in choice field. for example if choice is A then that row will be red color, if choice is G that row will be green color. How do i do that. i selected the repeater section -> add rule... how do i select choice column and check?
Solved! Go to Solution.
unfortunately it's not possible to apply rules on single repeating section's rows.
eg. following code that register onchange handler to respective choice control could do the trick
I used color names directly as choice values
attached find small example form.
fine if that's enough for you.
note however, that colors will not change with choice change and as well this approach need not work for controls that are populated asynchronously (eg. lookups)
i have one more question, based on the color of the repeater control i wanted to disable or hide the delete icon (delete row) in the control. How do i do that? i dont want it in onchange event but on page load event...
quite similar way like you set colors.
I wouldn't write special condition that would disable the icon by color but rather set icon state along with the color.
the script to disable icon will look like:
NWF$(NWF$('.attachmentControlClass').find('.nf-attachmentsRow .nf-orphaned-attachment')).find('.propertysheet a').prop('disabled','disabled')
 means 3rd attachment
I assumed EDIT form.
I somehow switched to wrong context
 now means 2nd repeater row