Hello all,
I need some help. I am using Infopath 2010 and I am looking for a way keep adding values to a textbox once a butoon is clicked. I have a equipment request form that does the following:
user selects the following:
1. (radio buttons) catagory
2. (dropdowl list) department
3. (dropdown list) description
Once all 3 of the above are selected additional information such as part number, cost, amount on hand are displayed in (readonly) textboxes. Ok. heres where I have trouble. I now want the user, if happy, click the "add to cart button" where I would concat() certian objects and set a value of another multiline textbox such as:
1. Catagory selected 2. Description 3. Cost <-"value from read only textbox"
This works fine but I want to allow another selection to be made possible and add that new selection to the same textbox but with a newline return so now it would look like this:
<new selection> 1. Catagory selected 2. Description 3. Cost <-"value from read only textbox"
<old selection> 1. Catagory selected 2. Description 3. Cost <-"value from read only textbox"
and keep going unyill they selected everything.
This is an easy day if I was allowed to use C# but I can't use code behind due to my work policies.
C#: tbxCart += "\n" + ddlDescription.selectedValue.tostring() + " " + tbxCost.text //might be wrong but the concept is there
Is there any way to do this without the use of a repeating section or repeating table. I know its not a correct way to do a "shopping cart" but it works for my application.
Thnak you all very much.