?
Solved

Infopath: Display various information in one box

Posted on 2008-11-03
7
Medium Priority
?
238 Views
Last Modified: 2012-05-05
Hi All,

I have an infopath form which users fill in various information in various fields.

What I want to do if possible to for each of those responses to populate in a text box hidden on the form.  So user fills in name, location, question but I want all of those details to appear in a single text box on the form formatted with a break between each answer.  Is it possible to do this?

So for instance in the box at the bottom it would show

Jon Smith

Staines

How do we do this?
0
Comment
Question by:smods
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 25

Expert Comment

by:Robbie_Leggett
ID: 22866174
Try this. Go to Form options>Open and Save>Rules. Create a new rule. Add Action>Set a Fields Value.
Pick the field in question in the first box. Select the FX button for the second and choose add function. Select concat.
Where you need a double click to enter a field, do so for the first field and select the first field you want formatted. Once that is done, after the comma for the first field type the following EXACTLY:
" ", (that's "space",).
 
Then select the second field and repeat the process until you have all the fields.
 
:-)
0
 

Author Comment

by:smods
ID: 22866233
Sorry,  that's my fault for not making it clear.

I need a carriage return between each line.  Not a space
0
 
LVL 25

Accepted Solution

by:
Robbie_Leggett earned 2000 total points
ID: 22866280
You're going to need code then. Look here:
 
http://www.infopathdev.com/forums/p/1703/7630.aspx
 
:-)
0
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

 

Author Comment

by:smods
ID: 22866325
Thanks

As I have never really used infopath how/where do I insert this code? :D
0
 
LVL 25

Expert Comment

by:Robbie_Leggett
ID: 22866333
Tool>Form Options>Programming>VSTA.
 
Have a look in there. You really want to read up on this before you do anything.
 
www.infopathdev.com is a great site.
 
:-)
0
 

Author Comment

by:smods
ID: 22866608
I'm sure it is as I originally found this through google but I don't have the time to learn about the programming aspect.  I can see how I need to change the code but where to put it is what I am struggling with.  I don't have that path you have mentioned.

I have tools > Programming > On Load Event / On Switch Views Event / On Context Change Event / On Sign Event / Microsoft Script Editor
0
 
LVL 25

Expert Comment

by:Robbie_Leggett
ID: 22866921
You need microsoft script editor.
 
:-)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Before you can digitally sign infopath forms, you must have a digital certificate. Microsoft Certificate Services will need to be enabled on a Windows Server 2008 to facilitate the creation and verification of the digital certifciates on the web ser…
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question