Expand my Community achievements bar.

SOLVED

Drop Down list creates Checklist

Avatar

Former Community Member

I'd like to create an Equipment checkout form that when a user selects a piece of equipment, it will list all of the items that are included with that piece of equipment so that the user can check off each item to make sure it's all there. The items would be checked off after the form is printed so they don't need to be filled out online.  Is this possible?  If so, how? Be gentle, I'm a newbie.

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Here you go. The code is on the exit event of the DropDownList. Let me know what you think.

Paul

View solution in original post

10 Replies

Avatar

Former Community Member

Its doable but where woudl the list of components come from when the user chooses the equipment they want? Are there many pieces of equipment to in the list? Are you going to hard code the component pieces into the form?

Paul

Avatar

Former Community Member

I'm not sure, (again I'm new to this)  I would guess a XML source file? But I wouldn't really know how to set it up.

Avatar

Former Community Member

How many different options in the DDlist and can you estimate how many parts each item woudl have? This will determine the best and easiest approach to take.

Paul

Avatar

Former Community Member

I'm going to break down the lists by department so there should only be maybe 5-10 per DDlist and each item would have around 5 pieces or so.

Avatar

Former Community Member

Are you against coding it right in the form or woudl you rather merge in an XML file?

Paul

Avatar

Former Community Member

I think I'd actually prefer it coded into the form as opposed to a separate XML file.  I'm just not a coder, I could probably figure it out if I saw an example.

Avatar

Former Community Member

Can you post an example of what you want and I will code up a sample when I get a chance.

Paul

Avatar

Former Community Member

It would look similar to the image below.  The Drop Down list would have 5-10 items and each item would have it's own set of "pieces" that display below the item as shown:

sample.jpg

Selecting a different item in the DDlist would display a different list below it.  I hope this makes sense.

Avatar

Correct answer by
Former Community Member

Here you go. The code is on the exit event of the DropDownList. Let me know what you think.

Paul

Avatar

Former Community Member

That's exactly what I was looking for!  Thanks so much for your help!

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----