Welcome to the nuBuilder Forums!

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

Launch an edit form from a form based on one of the object

Questions related to using nuBuilder Forte.
Locked
marcvander
Posts: 101
Joined: Mon Mar 26, 2018 5:57 pm

Launch an edit form from a form based on one of the object

Unread post by marcvander »

Hey,

I'm trying to have a button on an edit form, which on click redirects to another edit form, using as RECORD ID one of the object value of the 1st form.

My button object is an input type button, with a JavaScript custom code:

onclick nuPopup('597603a58b48ffe',opportunite_contact_client);

The opportunite_contact_client is the object I'm trying to get the value from to directly enter in edit mode for the form 597603a58b48ffe with RECORD_ID = opportunite_contact_client. When I click on the button, nothing launches, nothing happens, it just freezes. Am I doing something wrong ?

Thanks
Config:
nuBuilder v4 on a dedicated LAMP server:
-Ubuntu 14.04.5 LTS
-Apache 2.4.7
-MySQL 14.14 Distrib 5.7.22
-PHP 5.5.9-1ubuntu4.23
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: Launch an edit form from a form based on one of the obje

Unread post by toms »

This should work:

Code: Select all

nuPopup('597603a58b48ffe',$('#opportunite_contact_client').val());
marcvander
Posts: 101
Joined: Mon Mar 26, 2018 5:57 pm

Re: Launch an edit form from a form based on one of the obje

Unread post by marcvander »

It works, perfect, thank you!
Config:
nuBuilder v4 on a dedicated LAMP server:
-Ubuntu 14.04.5 LTS
-Apache 2.4.7
-MySQL 14.14 Distrib 5.7.22
-PHP 5.5.9-1ubuntu4.23
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Launch an edit form from a form based on one of the obje

Unread post by admin »

.
Locked