Skip to main content
Nintex Community Menu Bar
Question

Disable a button and updateData of a model

  • July 9, 2024
  • 1 reply
  • 5 views

Forum|alt.badge.img

I'm trying to disable a button and it works great in javascript but once I update a model it switches the button back to enable. I'm assuming it's drawing the page again on model update. Is there any way to disable the button?  Here is my test javascript code.

skuid.$('#TestButton').button('disable');
 var mydateModel = skuid.model.getModel('AEMDate');
 var firstDateRow = mydateModel.getFirstRow();
 alert('end date = ' + firstDateRow.End_Date__c);
 mydateModel.updateData();


This topic has been closed for replies.

1 reply

Forum|alt.badge.img+17
  • Nintex Employee
  • July 9, 2024

If you’ll wait for a little while,  the Banzai release will allow you to disable page title buttons using conditional rendering logic.  Where before you could simply hide the button,  now you will be able to disable the button.