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
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
concatenate field values
-
- nuBuilder Team
- Posts: 4565
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 529 times
- Contact:
Re: concatenate field values
Code: Select all
nuSetValue("full_name", first_name.value + " " + last_name.value);
-
- Posts: 12
- Joined: Mon Nov 15, 2021 11:11 pm