Hello,
I followed the example of the video that shows making invoices posted, which hides the save button, and enters a 1 into the posted field on the invoice table.
What I would like to do is the same thing, except I do not want the user to be able to post the record until another column is a specific value.
I tried piecing together before save and save form with the following in the extra button tab, JavaScript code box:
// not in code.. 1sta_satatus is the field to be checked
// not in code.. "Complete" is the value that has to be used (also tried the direct field on the main table and it's related foreign key)
// not in code.. 1tic_posted is the field to mark as 1.
var data = $('#1sta_status').val();
if(data = "Complete"){
$('#1tic_posted').val(1);
$('#1tic_posted').change();
nuSaveForm();
}
any hints?
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Posted Tutorial, plus a requirement
Re: Posted Tutorial, plus a requirement
mobilemcclintic,
The wiki has a section on hash variables and where they can be used..
http://wiki.nubuilder.net/nubuilderv3/i ... _Variables
Lookup Starting Object Values (eg.#cus_name#) and Display SQL
Steven
The wiki has a section on hash variables and where they can be used..
http://wiki.nubuilder.net/nubuilderv3/i ... _Variables
Lookup Starting Object Values (eg.#cus_name#) and Display SQL
Steven