Welcome to the nuBuilder Forums!

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

nuSetFormValue with hash cookies

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
treed
Posts: 205
Joined: Mon May 18, 2020 12:02 am
Been thanked: 2 times
Contact:

nuSetFormValue with hash cookies

Unread post by treed »

Documentation says it works with strings, but examples show an object being passed. Can this work? Hash value is set.

Code: Select all

nuSetFormValue('OrdTerms', "%OrgTerms%");
Or is there a better way the value of a forms fields on a before edit. This form is opened with nuForm().
kev1n
nuBuilder Team
Posts: 4299
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: nuSetFormValue with hash cookies

Unread post by kev1n »

nuSetFormValue() works only in After Browse of a Lookup Object.

A valid cookie would be #OrgTerms# and not %OrgTerms%

Or is there a better way the value of a forms fields on a before edit. This form is opened with nuForm().
Use nuOnProcessObjects()
kev1n
nuBuilder Team
Posts: 4299
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: nuSetFormValue with hash cookies

Unread post by kev1n »

Is this solved?
treed
Posts: 205
Joined: Mon May 18, 2020 12:02 am
Been thanked: 2 times
Contact:

Re: nuSetFormValue with hash cookies

Unread post by treed »

Thanks for asking, no. I just updated the site to the latest code last week. I'll give nuOnProcessObuects() a try.
Post Reply