Welcome to the nuBuilder Forums!

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

Input object on launch form

Questions related to customising nuBuilder Forte with JavaScript or PHP.
kev1n
nuBuilder Team
Posts: 4300
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Input object on launch form

Unread post by kev1n »

Is it not the same form or the same tab? In any case, use nuSetProperty() in JS, to set a (global) hash cookie like

Code: Select all

nuSetProperty('Date_Debut', crtdn_date_debut.value, true);
in PHP, retrieve it like #Date_Debut#
BDemeuse
Posts: 92
Joined: Mon Apr 12, 2021 3:09 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Input object on launch form

Unread post by BDemeuse »

Thanks :D :D :D
BDemeuse
Posts: 92
Joined: Mon Apr 12, 2021 3:09 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Input object on launch form

Unread post by BDemeuse »

Hi,

How can I set a null hash variable for a nuRunQuery ?
Ex:
if(empty($date_fin))
{
$date_fin = NULL;
};
$s = "call select_donateur('#date_debut#','#date_fin#', '#campagne_id#')";
nuRunQuery($s);

$date_fin = NULL does not work :-(

I also have another question for the nuSendMail with attached files
"If you do want to send attachments, this array needs in the following format [$filename=>$filesource]"
what does [$filename=>$filesource] mean ?

Thanks again!!
kev1n
nuBuilder Team
Posts: 4300
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Input object on launch form

Unread post by kev1n »

Where is $date_fin set?

Could you create a separate topic for your other question?
BDemeuse
Posts: 92
Joined: Mon Apr 12, 2021 3:09 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Input object on launch form

Unread post by BDemeuse »

Hi,

last news ... it works (null value) with a $variable of type INT but not of DATETIME.
I did a mistake by using #variable.

Sorry for the other topic. I will create a new post.

Regards and many thanks!!
kev1n
nuBuilder Team
Posts: 4300
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Input object on launch form

Unread post by kev1n »

Pass the NULL without enclosing single quotes
Post Reply