Welcome to the nuBuilder Forums!

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

concatenate field values

Questions related to using nuBuilder Forte.
Post Reply
Marvo
Posts: 12
Joined: Mon Nov 15, 2021 11:11 pm

concatenate field values

Unread post by Marvo »

Hi

I have form/table with fields:
first_name
last_name
full_name

I want the user to complete first and last name and automatically 'calculate' full_name
I have managed this (not sure how) by setting full_name as a input/text field and on the customer code tab onblur: full_name.value = first_name.value + " " + last_name.value;

This seems to work fine (goodness knows how I did that!) - but the concatenated value is not stored or displayed in the Browse form.
Do I need to do something different to actually save the value?

I read in another thread that I may need to trigger a Change event with some JS - I have no idea what that is or where to do it!

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

Re: concatenate field values

Unread post by kev1n »

Code: Select all

nuSetValue("full_name",  first_name.value + " " + last_name.value);
Marvo
Posts: 12
Joined: Mon Nov 15, 2021 11:11 pm

Re: concatenate field values

Unread post by Marvo »

Sorted! Thanks Kevin
Post Reply