Expand my Community achievements bar.

SOLVED

My Dreaded Dropdown

Avatar

Level 1

I am sure this is somewhere here but being new, I am not able to find one that I can tweak to work for me.

I am trying to make a form for our police department that allows you to select the Offense BURGLARY OF VEHICLES for example, and have it put in the proper Penal Code in a different field which in this case would be PC 30.04. I need to be able to add about 40 different Offenses and Penal Code values.

Any help would be great!

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

First add the text to the list items on the drop-down.

Untitled.png

Then go to the Binding tab, click Specify Item Values and add the penal codes.

Untitled1.png

In the exit event of the drop-down populate the penal code field with the raw value of the drop-down.

// form1.page1.offense::exit - (JavaScript, client)


form1.page1.penalCode.rawValue = form1.page1.offense.rawValue;

Steve

View solution in original post

2 Replies

Avatar

Correct answer by
Former Community Member

First add the text to the list items on the drop-down.

Untitled.png

Then go to the Binding tab, click Specify Item Values and add the penal codes.

Untitled1.png

In the exit event of the drop-down populate the penal code field with the raw value of the drop-down.

// form1.page1.offense::exit - (JavaScript, client)


form1.page1.penalCode.rawValue = form1.page1.offense.rawValue;

Steve

Avatar

Level 1

Ok and I am sure this is a stupid question.. Now that I have it completed, how do

I get it into my Fillable PDF file that I have made. I try to import a page and get "You cannot insert pages from an Adobe XML form into another PDF file.........:

I have an age calculation that I am having the same trouble with

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] ----