hey there,
first of all i am a German native , you will see on the screenshots, so my English is not the prettiest. as you will notice in the screenshots, i turned the color theme to red for buttons etc.
I have this edit form with a jstree via html-object
to use the buttons below, the user has to select an active node of the tree. so the node-id is set as an value.
With the Button "Annehmen", i go into a new form. How can i get the value of the field or the node into the new form? the new form must be a edit form with a new record set and the field is not the primary key.
the code for the activated node:
i hope my question is clear. Surely it is a easy proplem for you, but i am a bit noobish on web-development.
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Transfer a Value into a new Form
-
- Posts: 21
- Joined: Thu Feb 18, 2021 5:56 pm
Transfer a Value into a new Form
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4299
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Transfer a Value into a new Form
When the button "Annehmen" is clicked assign the value of Anfrage_His_ID to a variable AnfHisID. Use the button's onclick event in the Custom Code tab:
Then, in the new form, retrieve the value and assign it to AnfHisID.
I hope that helps.
Code: Select all
window.AnfHisID = $('#Anfrage_His_ID').val();
Code: Select all
if (nuFormType() == 'edit') {
$('#AnfHisID').val(window.AnfHisID);
}
You do not have the required permissions to view the files attached to this post.
-
- Posts: 21
- Joined: Thu Feb 18, 2021 5:56 pm
Re: Transfer a Value into a new Form
worked as expected. thank you.
Update: well not completely.
The field is filled corectly, but when i save the form, without editing the Anfrage_His_ID, it becomes Zero in the Database.
Update: well not completely.
The field is filled corectly, but when i save the form, without editing the Anfrage_His_ID, it becomes Zero in the Database.
-
- nuBuilder Team
- Posts: 4299
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact: