Skip to main content
Nintex Community Menu Bar
Question

Disable a button and updateData of a model

  • July 9, 2024
  • 1 reply
  • 3 views
  • Translate

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();


Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

Forum|alt.badge.img+17
  • Nintex Employee
  • 3763 replies
  • 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. 

Translate

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings