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

Nintex Form Choice Functionality

Jump to solution

Hi Everyone,

I have this project that is an calendar app and in the form it has a field "Canceled" which has a choice of No and Yes. What I want to happen is that when the user choose Yes in the field Canceled then save. The form button Edit Item will not be available anymore or the event can't be modified, only me can edit the form so the user will ask for my permission to edit it again in case the user needs to edit a canceled event.

The Edit Item should be gone or not clickable.

Thank you!

Labels: (2)
0 Kudos
Reply
13 Replies
Workflow Hero

Re: Nintex Form Choice Functionality

Jump to solution

Hi Rogelio Tan‌,

You can have a Nintex Workflow triggered when Cancelled field is set to Yes, and in the workflow use Set Item Permission to remove existing permission & grant full control to you.

Reply
Workflow Hero

Re: Nintex Form Choice Functionality

Jump to solution

Hi Chaitra,

Thank you so much it worked. Anyway is there a way to put a pop up or a dialog box that will inform the user if they select the "Yes" button. I already search in the internet and can't seem to find the any answer.

Reply
Workflow Hero

Re: Nintex Form Choice Functionality

Jump to solution

Hi Rogelio Tan‌,

this would be done with a javascript alert. A good example is explained here:

Nintex Forms – to Alert or Confirm.. | The SharePoint Pub 

Would this help you in your scenario?

Kind regards,

Enrico

Reply
Workflow Hero

Re: Nintex Form Choice Functionality

Jump to solution

To trigger alert on Cancelled option set to Yes, follow the below steps:

  1. Assign 'Store Client ID in JavaScript variable' for Cancelled field as chkCancelled
  2. In Custom Javascript of the From Settings on ready event write a Cancelled field on change event to show alert:

    NWF$(document).ready(function () {

    var opt= NWF$("#" + chkCancelled);
    opt.change(function(){
    var optSelected = opt.find('input:checked').val();
    if(optSelected == 1)

    {

    alert("Custom message");

    }
    });

Please don't forget to mark the question as answered. 

Reply
Workflow Hero

Re: Nintex Form Choice Functionality

Jump to solution

Hi

I think this is a good example. But it is not applicable in my scenario. What I would like to happen is as the user choose the Yes button there is some kind of warning that if he/she saved the item with the Yes option selected he/she can't edit it anymore. What is given in the example you gave is at the save button so he/she don't have a choice to change his/her input because once the pop up is closed it will saved the form.

0 Kudos
Reply
Workflow Hero

Re: Nintex Form Choice Functionality

Jump to solution

Hi Chaitra,

I can't seem to make it work. I followed all of your instructions and it's still not working. Do my previous javascript code may be the one causing problem?

0 Kudos
Reply
Workflow Hero

Re: Nintex Form Choice Functionality

Jump to solution

Replace the custom code with below code:

NWF$(document).ready(function () {

var opt= NWF$("#" + chkOption);
opt.change(function(){
if(opt.prop('checked')) // since its a check-box the checked property will return the value
alert(optSelected);
});
});

It will work now.

0 Kudos
Reply
Workflow Hero

Re: Nintex Form Choice Functionality

Jump to solution

Hi Chaitra,

It's still not working. I'm not sure what I'm doing wrong. Also, sorry because I'm really new to the Nintex Form environment. Under the field Cancelled there is two choices which are a radio button naming No and Yes. I also, changed it to a checkbox and it is still not working.

Rogelio,

0 Kudos
Reply
Workflow Hero

Re: Nintex Form Choice Functionality

Jump to solution

This is what I'm getting when I submit the form not when I choose the Yes button

 and also there is no pop up box when I choose the Yes button.

0 Kudos
Reply