Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Exclude input field from generation of save request

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
Janusz
nuBuilder Team
Posts: 508
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 10 times
Been thanked: 18 times

Exclude input field from generation of save request

Unread post 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"?
If you like nuBuilder, please leave a review on SourceForge
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Exclude input field from generation of save request

Unread post by kev1n »

Code: Select all

$('#your_field_to_exclude').removeAttr('onchange');
Janusz
nuBuilder Team
Posts: 508
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 10 times
Been thanked: 18 times

Re: Exclude input field from generation of save request

Unread post 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
If you like nuBuilder, please leave a review on SourceForge
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Exclude input field from generation of save request

Unread post by kev1n »

This one is more tricky since nuHasBeenEdited() is called in the function nuGetLookupId()
Post Reply