cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Workflow Hero

Nintex Forms O365 - Calculated Field Not Updating

I'm attempting to get a calculated field to update as the dropdown values change.

In the example below - the problem is that the calculated value refuses to change if only "Landscape" is selected and subsequently unchecked. This issue does not occur if "Portrait" is already checked.

There is no problem with the "Portrait" option - the calculated value always updates correctly.

Is there something wrong with my script?

NWF$(document).ready(function () {
    NWF$("#" + PosterOrientation).change(function () {
        if (!NWF$(this).find(':checkbox[value=\'Portrait\']').prop('checked')) {
        NWF$("#" + NumberRequiredPortrait + " option:selected").removeAttr("selected").trigger('change'); }
        else 
        if (!NWF$(this).find(':checkbox[value=\'Landscape\']').prop('checked')) {
        NWF$("#" + NumberRequiredLandscape + " option:selected").removeAttr("selected").trigger('change'); }
    });
});

Labels: (3)
0 Kudos
Reply
1 Reply
Community Manager Community Manager
Community Manager

Re: Nintex Forms O365 - Calculated Field Not Updating

Perhaps change the selection for orientation to radial buttons so only one choice can be selected and see if that works. I know multi-choice columns does something odd to the choice and that may be confusing it on the backend when its expecting a particular output.

The other thought was remove the else, and ensure that the logic for each one works on its own.

0 Kudos
Accept as Solution Reply