Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
2

Concatenate 2 input fields in to 1 field in forms

Community Beginner ,
Aug 16, 2023 Aug 16, 2023

I input this in the Calculation Properties (copied from an answer from someone's question) but it doesn't quite work.

event.value = this.getField("PatFirstName").valueAsString + " " + this.getField("PatLastName").valueAsString;

This is the issue I am having...  I have 2 forms that I combine with the above calculation set on one of the forms pulling the data from the 2nd form.  Once both forms are combined and saved I have to take the following steps, Prepare Form, Properties, Calculate, Edit, (leaving the script you wrote in the editor box) OK, and close.  Only then will the field populate.  Can anyone help please.

TOPICS
How to
2.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 16, 2023 Aug 16, 2023

Did you use it as 'Custom calculation script'?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 16, 2023 Aug 16, 2023

Yes I did.

shondag57_0-1692218141929.png

I don't know a great deal about this but it almost seems like it wants me to hit enter

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 16, 2023 Aug 16, 2023

It should work fine.

Can you share your file?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 17, 2023 Aug 17, 2023

I can but I need to create one that does not have our Patients personal data on it.  I will input some generic info and then share. Give me a minute.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 17, 2023 Aug 17, 2023

Both forms are combined.  The last page has the 2 fields that I am having the issue with.  Thank you in advance!!!

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 17, 2023 Aug 17, 2023
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 17, 2023 Aug 17, 2023
LATEST

OMG it worked!!!! Thank you soooo much.  We are in the middle of a very large project (we help those who can not pay for their medication) and I have to attach this to each application.  This will save a tremendous amout of time for us. You are awesome!!!!!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines