Page 1 of 1

Exclude input field from generation of save request

Posted: Sun Sep 01, 2019 4:53 pm
by Janusz
Hi,
On the form I have one temporary input field not linked at all to the original form sql table.
When I modify it - then it is switching button SAVE to red.
Is it possible on the edit form to exclude some fields from generation of "save request"?

Re: Exclude input field from generation of save request

Posted: Mon Sep 02, 2019 6:29 am
by kev1n

Code: Select all

$('#your_field_to_exclude').removeAttr('onchange');

Re: Exclude input field from generation of save request

Posted: Mon Sep 02, 2019 11:46 am
by Janusz
Thanks a lot - it's working fine for the nuBuilder default Save button (with the text input fields)

and one more question how to use that code:

Code: Select all

$('#your_field_to_exclude').removeAttr('onchange');
for the Lookup object.
This works fine for the text input field but did not find the way how to implement for Lookup

Re: Exclude input field from generation of save request

Posted: Tue Sep 03, 2019 8:02 am
by kev1n
This one is more tricky since nuHasBeenEdited() is called in the function nuGetLookupId()