Need help in saving the page by cancelling all render conditions and validations

  • 2
  • Question
  • Updated 2 years ago
Hi,

I am trying to create a button "Save Inprogress", this button should disable the render conditions and validations
 
Is there any way to do this?

Thanks in Advance.
Photo of Linga

Linga

  • 228 Points 100 badge 2x thumb

Posted 2 years ago

  • 2
Photo of Janick

Janick

  • 916 Points 500 badge 2x thumb
Hey Linga,

I've tried answering this in the other thread: https://community.skuid.com/skuid/topics/i-want-to-create-a-quick-save-button

Do you require further assistance with this?

Janick
(Edited)
Photo of Linga

Linga

  • 228 Points 100 badge 2x thumb
Hi Janick,

Sorry for the delayed response. 
The thing is when I click on Quick save button, page should be saved even though the user does not fill the required fields.

I tried to include below script and button actions on the quick save button, but its not updating the records

Actions: 
Action Type: Run Snippet: validateQuickSave
Action Type: Close all popups



var params = arguments[0],    $ = skuid.$;

var myModel = skuid.$M('MODEL NAME');
var rows = myModel.getRows();
var dfd = $.Deferred();

$.each(rows, function(i, row) {
    if(row.Customer_Name__c === ' ' || row.Customer_Name__c !== ' ')
    {
        myModel.updateRows();
    }    
    dfd.resolve();
});


I know something is missing or I am not using the right approach.. but I definitely need help in resolving this issue.

Thank you so much for the follow up.