Dropdowns based on previous selection and auto populate
Good day All;
With any luck, this will be the final touches I will need to get this form ready for approval.
Anyway…. This is what I am trying to do. When using dropdown lists, I would like to be able to select from a group of managers depending on what “Section” was selected. It gets a little more crazy (to me anyway).
Example: There a 3 divisions with 1 director per division.
Each division has 4 or more sections with a manager for each section.
So that being said, what I would like the user to be able to do is:
If user selects Division “1” the “director” field will auto populate with “Director 1” name.
Next, when the user selects a “Section” from the dropdown, they will only be presented with a list of sections that belong to “Director 1”. When they make the selection, the “manager” is auto populated with the manager’s name…….
Please let me know if I have gone a wee bit over the deep end with this.
I hope this made sense??? ;>))
Thanks All
Chomp
Thanks both. I have been thrown a wee bit of a curve ball as the powers that be woul
d like to rethink what this form will be used for.
Thanks Again
Don
Similar Messages
-
Pre-Populate Dropdown based on information selected in another dropdown
Hello,
I hope this make since. I am working on building a form using Adobe Livecycle Designer. I have a dropdown list in multiple fields on the same form that will have the same information selected. I want the additional fields to automatically populate the information a user selects in the first dropdown list. Is this possible ??? If so, what would be the script/code necessary to do so ??? Thank you for your help.
Example
City, State appears in 4 different fields based on the selection in field 1, the additional 3 fields auto-populates the same information.
Field/List 1: New York, NY <-- Selected City, State
Field/List 2: New York, NY <-- Auto Populated based on field 1
Field/List 3: New York, NY <-- Auto Populated based on field 1
Field/List 4: New York, NY <-- Auto Populated based on field 1In the exit event of the first State field, using Javascript, something like this should work:
State2.rawValue = this.rawValue;
State3.rawValue = this.rawValue;
State4.rawValue = this.rawValue;
...where "State2", "State3", etc. are references to the other dropdowns you want to populate with the same information from the first state field.
Be sure to set the binding values in the BINDING tab of the dropdowns to the same in each dropdown,
Brian -
How to populate a dropdown based on the selection from a previous dropdown?
I am currently trying to build a spreadsheet with three different dropdown menus to choose from. Based on what is selected from the first drop down though affects what choices are displayed for the next dropdowns. Is this possible in Numbers? Or should I look for other alternatives for what I'm trying to do.
Dynamic dropdown (pop-up) menus is not possible in Numbers directly. If you use scripts you may be able to cobble something together.
If you REALLY want pop up menus then place ALL the choices in a single pop up grouped together -
Dynamic dropdown based on user selection of another dropdown on the same page
hi all, ok, I have a table which contains use data, a name,
and a userID. for the example lets say "Simon Bullen" and my userID
is "999".
on a form I have, there is a dropdown box, which is dynamic
from this table, and allows me to select Simon Bullen, however, I
have a hidden field on the form, which when the user selects "simon
bullen" the hidden field populates with the appropiate U number
from the same table.... no i thought this would do it:
<cfquery name="userNumber" datasource="userList">
SELECT userNumber FROM dbo.Users WHERE Name =
<cfqueryparam value="#form.Name#">
</cfquery>
and then my dynamic form field (hidden) would reference to
this query....
but it doens't work, could somebody please enlighten me? I'm
hoping its something silly
Thanks in advanceYou could make the value of the option the UserID and the
option display the name.
If that isn't what you need, I think you'll need some
javascript to populate your hidden field based on what is chosen in
the select.
I think you can modify this:
http://www.javascriptkit.com/javatutors/selectcontent2.shtml
...to populate your hidden field instead of a new select
list.
If there's a way to do that without JS I'm not aware of it.
A third possibility: look up the UserID (based on the name
chosen) after the form is submitted then do with it whatever you
need to. -
Populating values in dropdown based on values selected in second dropdown.
Hi,
I have two listboxes on the screen. Based on value chosen in first dropdown, I want to populate the values to be selected in second dropdown. How can i achieve this? I would be glad if anyone can help me out with this requirement.
Thanks,
Ameet<font color=blue>Hi,
<li> Place 2 input fields on screen.
<li>Set Listbox property as it is shown in the below link.
<a href="http://2.bp.blogspot.com/_O5f8iAlgdNQ/SmPSPnRa0tI/AAAAAAAAFCQ/wW_URP-ld6o/s1600-h/drop_down-770536.JPG" target="_new">link to dropdown setting</a>
<li>Set function code to first dropdown box to trigger event when you select value from first dropdown box. So that second one is changed.
<li>Declare variable like below in TOP include of the module pool program.
<pre>DATA: g_drop_1 TYPE char10,
g_drop_2 TYPE char10,
ucomm TYPE sy-ucomm.
TYPE-POOLS vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.</pre>
<li> Use screen flow logic of the screen like below
<pre>"PROCESS BEFORE OUTPUT.
PROCESS BEFORE OUTPUT.
field g_drop_1 MODULE drop_down_1.
field g_drop_2 MODULE drop_down_2.
"PROCESS AFTER INPUT.
PROCESS AFTER INPUT.
field g_drop_1.
field g_drop_2.</pre>
<li>Corresponding code for two drop down boxes.
<pre>&----
*& Module DROP_DOWN_1 OUTPUT
MODULE drop_down_1 OUTPUT.
CLEAR: list[],g_drop_2.
name = 'G_DROP_1'.
value-key = '1'.
value-text = 'value_1'.
APPEND value TO list.
CLEAR value.
value-key = '2'.
value-text = 'value_2'.
APPEND value TO list.
CLEAR value.
value-key = '3'.
value-text = 'value_3'.
APPEND value TO list.
CLEAR value.
value-key = '4'.
value-text = 'value_4'.
APPEND value TO list.
CLEAR value.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list.
ENDMODULE. " DROP_DOWN_1 OUTPUT
*& Module DROP_DOWN_2 OUTPUT
MODULE drop_down_2 OUTPUT.
CLEAR list[].
name = 'G_DROP_2'.
CASE g_drop_1.
WHEN 1 OR 2.
value-key = '1'.
value-text = 'text1'.
APPEND value TO list.
CLEAR value.
value-key = '2'.
value-text = 'text2'.
APPEND value TO list.
CLEAR value.
WHEN 3 OR 4.
value-key = '3'.
value-text = 'text3'.
APPEND value TO list.
CLEAR value.
value-key = '4'.
value-text = 'text4'.
APPEND value TO list.
CLEAR value.
ENDCASE.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list.
ENDMODULE. " DROP_DOWN_2 OUTPUT</pre>
Thanks
Venkat.O</font> -
Populating the 2nd dropdown based on value selected on 1st dropdown
Hi,
I know that there is a similar post about this in the forum but it doesn't actually show how an event for the dropdown is created. I believe this would be a script that is done within the form (transaction SFP) itself, but could I please have an example please?
I did try to take a look at the standard ISR_FORM_SPTD form but there doesn't seem to be any scripts in this form.
Thanks and regards,
Adeline.Hi,
Am not so sure, how were unable to locate this script. Click on the dropdown and check in the Script editor. You will get the same script. Anyways, here is the script.
<i>// If the display value is used in the data DOM,
// re-assign the corresponding data value
if (this.rawValue != "" ) {
if (this.boundItem(this.rawValue) != "") {
this.rawValue = this.boundItem(this.rawValue);
// START OF CODE - TO RUN AFTER SELECTION HAS BEEN MADE
xfa.record.CONTROL_PARAM.ISR_EVENT.value = "CHECK";
app.eval("event.target.SAPSubmit(false);");
// END OF CODE - TO RUN AFTER SELECTION HAS BEEN MADE
data.RequestPromotion[0].PCR_PAGE1.PCR_DE.PCRDEContent.NewScaleLevelDDL::ready:form - (FormCalc, client)
// START OF XFO CODE - DO NOT REMOVE OR MODIFY
// If this object exists, then we are not being rendered by the XML Form Agent
if ((Exists(xfa.host.appType)) and ($.bind.ref <> "")) then
// Note the rawValue and try to set the selection if it is present
// As soon as you add items the rawValue will be lost
var CurrValue = ""
// Check for a null - an empty XML node will return a null
if ($.rawValue <> null) then
CurrValue = $.rawValue
endif
var Found = 0
// the data binding may contain "$data.<root data name>" instead of $record
var DataBinding = replace($.bind.ref,Concat("$data.",xfa.record.name),"$record")
DataBinding = replace(DataBinding,"[*]")
for i=0 upto xfa.record.enum_list.nodes.length - 1 step 1 do
// Find the match. The binding value may contain "[*]"
// so remove them first
var ListBinding = replace(xfa.record.enum_list.nodes.item(i).binding.value,"[*]")
if (DataBinding == ListBinding) then
// the first two items are the name and binding attributes, then the list starts
if (xfa.host.version < 7) then // add a dummy item to work around a bug in A6
$.addItem("a","-1")
endif
$.clearItems()
for j=2 upto xfa.record.enum_list.nodes.item(i).nodes.length - 1 step 2 do
// The order is assumed to be display and then data
// if the value is null, then add the empty string
if (xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == null) then
$.addItem(xfa.record.enum_list.nodes.item(i).nodes.item(j).value,"")
else
$.addItem(xfa.record.enum_list.nodes.item(i).nodes.item(j).value,xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value)
endif
if (xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == CurrValue) then
Found = 1
endif
if ((xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == null) and (CurrValue == "")) then
Found = 1
endif
endfor
// Now set the selection - omitting this step means there will be no selection
// if there is only one item in the list and no default value, we have to select the first item - Bug in Acrobat 6.02 (fixed in Acrobat 7)
if ((xfa.record.enum_list.nodes.item(i).nodes.length <= 4) and (CurrValue == "") and (xfa.host.version < 7)) then
$.rawValue = xfa.record.enum_list.nodes.item(i).nodes.item(3).value
else
// if available, set the selection to the default value
if (Found) then
$.rawValue = CurrValue
else
// otherwise: set the selection to the first item
$.rawValue = xfa.record.enum_list.nodes.item(i).nodes.item(3).value
endif
endif
// START OF CODE - TO RUN AFTER LIST HAS BEEN FILLED
// END OF CODE - TO RUN AFTER LIST HAS BEEN FILLED
break
endif
endfor
endif
// END OF XFO CODE - DO NOT REMOVE OR MODIFY</i>
This should solve your problem.
Regards
<i><b>Raja Sekhar</b></i> -
How to show valid field items based on previous selected field
I am trying to use BC Web Apps to help my customers find products for their specific motor vehicle.
By selecting the vehicle make and then the model. e.g. Chevrolet and then Camaro.
This will then bring up a table with all the cosponsoring equipment part numbers.
At the moment the closest I can get is two dropdown lists one with all the vehicle makes and another with every vehicle model.
If I select Chevrolet I only want to see Chevrolet models in the dropdown list.Hi 2932464,
2932464 wrote:
Hi,
I have a set of text Field items in oracle apex:
Order Number
Revision Number
When we open the report, revision should be hidden.
Only when the user enters unique order number (non-duplicate order numbers), revision number should be visible.
If he enters duplicate order number, revision number should be hidden.
Please help.
Giving you example how to achieve this.
Step 1. Create three Page Items
1) P1_ORDER_NO - Text Field
2) P1_REVISION_NO - Text Field
3) P1_ENABLE_DISABLE_REVNO - Hidden,Value Protected - No
2. Create 3 Dynamic Actions
1) Disable revision number on page load
Event - Page Load
Action - Disable
Fire When Event Result Is - True
Selection Type - Item
Item - P1_REVISION_NO
2) Check duplicate order number
Event - Change
Selection Type - Item(s)
Item(s) - P1_ORDER_NO
Condition - is not null
Action - Execute PL/SQL Code
Generate opposite false action - Unchecked
Fire When Event Result Is - True
Fire on page load - Unchecked
Stop Execution On Error - Checked
Wait for Result - Checked
PL/SQL Code -
declare
l_count number;
begin
select count(*) into l_count
from emp
where empno = :P1_ORDER_NO;
if l_count > 0 then
:P1_ENABLE_DISABLE_REVNO := 1;
else
:P1_ENABLE_DISABLE_REVNO := 0;
end if;
end;
Page Items to Submit = P1_ORDER_NO
Page Items to Return = P1_ENABLE_DISABLE_REVNO
3 ) Enable and Disable Revision Number
Event - Change
Selection Type - Item(s)
Item(s) - P1_ENABLE_DISABLE_REVNO
condition - greater than or equal to
value - 1
Action - Disable
Fire on Page Laod - Unchecked
Generate opposite false action - checked
Selection Type = Item(s)
Item(s) - P1_REVISION_NO
Hope this helps you,
Regards,
Jitendra
DER_NO -
Family budget add monthly sheet and auto populate master sheet with graphs
I would like to create a monthly budget template that i can link to a master document that will graph what we have paid and compare it to previous months. I may not have the correct vocabulary for this because i am pretty new to using equasions and linking documents.
q,
A Numbers Document, a file, can't communicate with another Numbers Document, file, without using scripts. You may keep the Master and the Monthly detail Sheets in the same document to accomplish your task.
If your monthy sheet sizes are modest, you should have no capacity or speed issues.
Jerry -
How to create a new attribute in OID and auto-populate it during sync from AD
Hi,
I'm new to OID and we are planning to set up AD to OID sync and we need to create an extra attribute in OID that we do not have currently in AD. We need to concat 4 attributes with "." in between and populate this new attribute.
If anyone has done something like this, can you please give me the steps involved and/or any examples?
Thank youI think you need to create a custom plugin to create the value of new attribute and populate it, may be post plugin in OID.
Java Server Plug-in Developer's Reference -
How to Auto-Populate a User Data Picker?
I understand how User Data Pickers work (mostly). We have used them during the shell creation process to allow the creator to specify which users may access the shell and in what user groups they will be placed. This works fine— as the shell is created, these users are added and assigned to their respective groups.
From the documentation, User Data Pickers are supposed to support auto-population, but the system does not allow me to select a suitable source from which to pull. For example, the shell attribute form contains a User Data Picker that contains the name of the PM that was assigned to the shell. Say I have a BP in that shell on which I want the PM’s name to appear. I’m thinking I would place a User Data Picker on the BP and auto-populate that field from the shell attribute user data picker, but uDesigner doesn’t allow the attribute form as source as it does for other DE types. This is important as this field, the PM’s name, must be located on the BP if I’m to use it in a LiveCycle report.
Short of having the user select the name again within the BP, how do I pass the names of shell members that were selected during shell creation using User Data Pickers?
Thanks.That works! Thanks Rich for clarifying your above posts with the screenshots.
Rich’s solution as it worked for me:
1. Add a User Data Picker to the shell attribute form.
2. Add a DE of DD SYS Medium Name to the shell attribute form. The DD type appears critical here and was my mistake in the past.
3. Auto-populate the DE created in step 2: Source Name-->Data Picker; Source Element-->uuu_user_name (in this case).
4. On the BP, place the same DE as step 2 and auto-populate (or link) it to the same DE on the shell attribute form.
What I didn’t expect:
1. User Data Pickers on BPs cannot reference User Data Pickers on shell attribute forms. Why do we need additional fields to link two other fields of the same type?
2. In operation the auto-populate, setup in step 3 above, occurs immediately as if it were a formula instead of just populating upon the shell creation stup as it would on BP creation. -
How to Filter Key Figures in Columns Based on a Selection
Hello,
I am trying to get my columns to dynamically filter based on some selection and would like to know what is the easiest way to make this happen. My scenario involves displaying 12 months of data for an actual / budget view. So we may need 8 months of actuals and 4 months of plan, 9 months of actuals and 3 months of plan, 10 months of actuals and 2 months of plan, etc. The row is cost element and my columns are restricted key figures. I want the user to be able to easily select an 8/4 look and the dynamically remove the unnecessary columns. Same with a 9/3 or a 10/2. Besides these 12 months of Act / Bud, I have 12 months of plan, 12 months of actuals for other years, so I have lots of key figures. Just doing the basic filter can be too cumbersome.
Thanks,
CherieHi Cherie,
This is exactly the type of problem that I'm currently trying to figure out. I'm trying to following your solution but I'm not clear on how you actually achieved this in you last note. I want to dynamically select actuals/budget column fields based on what period I enter. I thought about creating 12 separate RKF fields for actuals and 12 separate RKF fields for the budget reforecast and outputting these all and then doing some VBA to hide the fields not required based on which period was selected... how is your variable ZFYAPER7 defined and calculated?
Cheers -
Hiding columns in list based on prompt selection
Hi,
Question with me here is How to show the details only for selected Years in the prompts.
Users have to select a range of years for which they want to see the data and based on this selection, the columns should appear. more importatnly, there are other surrounding columns which should appear always on the result screen (that restricts me to use pivot instead).
e.g. Case 1 - User selected Year Range = 2011 to 2014 -
Result set columns should be
ID, CODE, DESC, VALUE_2011, VALUE_2012, VALUE_2013, VALUE_2014, Contact Person, Mail, Phone
Case 2 - User selected Year Range = 2011 to 2016 -
Result set columns should be
ID, CODE, DESC, VALUE_2011, VALUE_2012, VALUE_2013, VALUE_2014, VALUE_2015, VALUE_2016, Contact Person, Mail, Phone
Did anyone have a solution for such case?
Thanks in advance.user1997473 wrote:
Limitation I have is - I can not rearrange columns. I have to have initial few columns static, next few based on Years selected and last few static columns in same order. So I can not use pivot per my understanding. Any alternate approach?I don't understand your situation fully, but to answer your requirement, "I have to have...last few static columns in same order.," do this:
1) Put the dimension columns you need at the end of the report in the Measures section, on the bottom.
2) Change the Aggregation Rule to Max and the values will appear.
So you can have dimension columns at the end of a pivot table; you just have to do a little trickery. -
Auto populate fields based on dropdown selection
New to forms and needing some insight
Is there a way to auto populate a series of fields based on the selection of a dropdown box
for instance;
chosing a customer's name from a dropdown box would auto populate the address, city,state zip etc...Yes, but not easy and you do not want to have a large number of items.
Programming List and Combo fields in Acrobat and LiveCycle forms - Part 1 by Thom Parker -
Is there a way to auto-populate text based on a selection?
I honestly don't even know how to word my question haha... so the title may be misleading...
For my job I need to fill out indesign files, and at one part of the file based on the state a person is from I need to paste a specific e-mail in several places.
Is there a way where maybe I create a dropdown menu of the several state e-mails I can choose from, and upon choosing it auto-populates that choice into the several other places?
I guess, is there a way where if I make a select or input text into one area it will generate in the other areas as well?Maybe you need some kind of clipboard manager to choose several texts to paste
http://lifehacker.com/5298615/five-best-clipboard-managers -
Auto populate Infopath 2013 fields after selecting a specific dropdown option.
Auto populate Infopath 2013 fields after selecting a specific dropdown option.
Hi.
I have a Sharepoint 2013 list with three fields. Code, Section and Sub Section.
I would like to be able to have the form autopopulate the Section and Sub Section fields when a value for code is entered.
How would I go about this please?
Thanks
JonHi JonMorgan,
Based on your description, my understanding is that you want to achieve that the second dropdown gets populated depending on what the first dropdown is set to.
To achieve your requirement, creating cascading dropdown fields with InfoPath.
Please refer to the following links about cascade drop down in InfoPath form:
http://msreddysharepoint.blogspot.in/2012/12/infopath-2013-web-browser-creating.html
http://www.pointbeyond.com/2011/11/20/cascading-dropdowns-in-infopath-2010/
Best Regards,
Lisa Chen
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Lisa Chen
TechNet Community Support
Maybe you are looking for
-
IPhone 3G - email works in wifi; doesn't work over 3G or Edge
Anyone else experienced this problem? Since the middle of this past week, my iPhone 3G cannot send or receive email from my POP account over the 3G or EDGE network. It works fine over WiFi however. I took it to the Apple Store where they were able to
-
Can no longer burn cds that will play in my car's cd player
Yesterday I tried to burn a replacement CD for one that got damaged. The disc was one I created in Itunes a couple of years ago. It won't play in either my sound system's cd player or my car's. The only thing that has changed is the version of Itunes
-
My mack pro is shut down..when i click on shutdown is not working
my mack pro is shut down..when i click on shutdown is not working
-
No Tables in DW CS3 Remote MySQL Connection
Hello All, I was hoping forum members would be able to troubleshoot a Dreamweaver CS3/remote MySQL Connection issue I'm having. I am successful in connecting to the database but the table data I created in phpMyAdmin 2.6.3 does not appear in the Appl
-
SES Release Strategy not invoked in Backend from SRM confirmation posting
Hi, I have configured a SES release strategy based on vendor number in R/3. When a SES is created in R/3 via ML81N the release strategy is invoked as expected. However, when a confirmation is entered in SRM for that vendor, the SES that is created in