Interactive form that auto selects input fields based on initial selection
i want to create a form that based on initial selections, automatically highlights "required" input fields.
i.e. if i create an item on the form called "promotion", when this item is "checked", all the fields that are required will automatically light up, and the person completing the form cannot exit, save, and submit the form until all related fields are filled in.
is this possible using adobe products? i have cs5 (with dreamweaver, indesign, etc.)
can anyone point me toward any documentation that will show me how to do this?
This forum is for Adobe FormsCentral (formscentral.adobe.com) which is a service that allows you to create, collect and analyze data using an online web form. You should ask general HTML form related questions in the Dreamweaver forums:http://forums.adobe.com/community/dreamweaver/dreamweaver_general
I'll move your post to that forum so you don't need to retype it. They can help you out...
Randy
Similar Messages
-
Is there a way to auto populate one field based on a selection made in another field?
We want to enter an account number and have the account name field auto populate.
Yes there are many ways.
Do you want to populate form a controlled source like a database?
From data stored within the form? -
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 -
Using JavaScript to auto populate a field based on numeric value of a separate drop down field
Hello, I am trying to set up a simple, I hope, javascript which will enable to me auto populate one field based on the numberic value of another field using Acrobat Pro XI.
Essentially I have 2 drop down fields (we'll call them DD1 and DD2).
DD1 is the sum of 8 preceding drop down values. That sum can be anywhere from 0 - 40. Whatever that sum falls within a range which identifies a rating. The ratings and ranges are below:
0-8: Non-Performer
9-16: Low Performer
17-24: Performer
25-32: High Performer
33-40: Exceptional Performer
DD2 is where the rating ("non-performer", "low performer", etc.) will be captured. Instead of requiring the user to look at DD1, determine the value, and then identify and input the rating manually, I would like DD2 to auto populate the rating based on the value (sum) in DD1.
For example, if DD1 shows a value of 27 then DD2 would auto populate "High Performer". So how do I write this code or execute this? In excel I would use an if, then statement. Is there something similar in Acrobat Pro XI.
Any help is greatly appreciated. Thank you in advance.If you use a text field, the custom calculation script could be:
// Custom calculation script for text field
(function () {
var s = getField("DD1").valueAsString;
// Blank this field if input is blank
if (!s) {
event.value = "";
return;
// Convert string to number
var v = +s;
// Set this field's value based on the input
if (v <= 40 && v >= 33) {
event.value = "Exceptional Performer";
return;
if (v < 33 && v >= 25) {
event.value = "High Performer";
return;
if (v < 25 && v >= 17) {
event.value = "Performer";
return;
if (v < 17 && v >= 9) {
event.value = "Low Performer";
return;
if (v < 9 && v >= 0) {
event.value = "Non-Performer";
return;
// If none of the above fit, blank this field
event.value = ""; -
How to enable/disable the input fields based on the data entered in the web dynpro application abap? If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.
Hi,
Try this code.
First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
Next go to Init method.
Set the readonly value as 'X'.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = 'X').
After that Go to the Action ENTER.
First read the input field ( first input field, which is value entered field) , next give a condition
if input value is not initial then set the readonly value is ' '.
DATA lo_nd_input TYPE REF TO if_wd_context_node.
DATA lo_el_input TYPE REF TO if_wd_context_element.
DATA ls_input TYPE wd_this->element_input.
DATA lv_vbeln TYPE wd_this->element_input-vbeln.
* navigate from <CONTEXT> to <INPUT> via lead selection
lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
* @TODO handle non existant child
* IF lo_nd_input IS INITIAL.
* ENDIF.
* get element via lead selection
lo_el_input = lo_nd_input->get_element( ).
* @TODO handle not set lead selection
IF lo_el_input IS INITIAL.
ENDIF.
* get single attribute
lo_el_input->get_attribute(
EXPORTING
name = `VBELN`
IMPORTING
value = lv_vbeln ).
if lv_vbeln IS not INITIAL.
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_visible TYPE wd_this->element_context-visible.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* @TODO handle not set lead selection
IF lo_el_context IS INITIAL.
ENDIF.
* @TODO fill attribute
* lv_visible = 1.
* set single attribute
lo_el_context->set_attribute(
name = `READONLY`
value = ' ' ). -
Dynamically enable a field based on a selected table row
Hi everyone.
I'm getting really confused right now, please show me the right way. My approach may be, and probably is, wrong since I am self learning this and all I have is an ASP.NET background.
I have a page with a table in it. I've created a DataControl for a collection I've made and mapped it to the table. I added a column that shows an "edit" button. On it's click, I open a popup that shows the selected row's data. Naviguation controls are also present on the popup.
This is working fine.
My problem comes in the popup. Each row has multiples fields. These fields, shown on the popup, need to dynamically be enable/disable. To toggle those field, the only way I can see right now is to have a function that takes into parameter the rowId and the fieldName. Based on those two fields, I can get the necessary information to know if I need to enable or disable the control.
What I was aiming for, but then again I totally failed, was to have that function called on the "enabled" EL Expression, returning a Boolean.
Now that this has been said, can someone guide my on how to dynamically enable/disable each field based on the selected row.
Thanks !Above +
why don't you create a bean method that returns a Boolean ans through EL Expression Builder select the method to this property.
btw .. on which components are you setting this?
Also,
If there is business logic that prohibits to update this object unless that is met.. you can also do it as..
In EOImpl .. override isAttributeUpdateable(int i) method eg:
@Override
public boolean isAttributeUpdateable(int i) {
if(i == this.ENAME && "KING".equalsIgnoreCase(this.getEname())){
return true;
}else
return super.isAttributeUpdateable(i);
and then in UI for the component say
ReadOnly = #{bindings.Ename.updateable}
Or, In UI
disable = #{ bindings.Ename.attributeValue == 'KING' & bindings.Mrg.attributeValue == null ? true : false}
adf does provides many ways to do it ..
Cheers, Amit -
Hi ,i want provide a input help for a Selection input field
Hi Experts,
I want to provide a input help for field in selection-screen ,
this field is non primary key Custom Table(Z) selection input field .
how we can get ,f4 help for this field.
how to get f4 help Suppose field Link s_mtart-low,s_mtart-high,
What are the function moduled available for this >
Thanks in Advance.
Regards,
Hitu.Hi,
refer to below code.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_usnam-low.
**//To provide F4 help to S_USNAM-LOW
PERFORM f_f4help_usnam USING 'S_USNAM-LOW'.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_usnam-high.
**//To provide F4 help to S_USNAM-HIGH
PERFORM f_f4help_usnam USING 'S_USNAM-HIGH'.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_wbs-low.
**//To provide F4 help to S_WBS-LOW
PERFORM f_f4help_wbs USING 'S_WBS-LOW'.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_wbs-high.
**//To provide F4 help to S_WBS-HIGH
PERFORM f_f4help_wbs USING 'S_WBS-HIGH'.
*& Form f_f4help_usnam
To provide F4 help to username
-->P_0019 text
*FORM f_f4help_usnam USING value(p_0019) TYPE any.
**// To retrieve username from mkpf.
SELECT bname
FROM usr01
INTO TABLE it_usnam.
SORT: it_usnam BY usnam.
DELETE ADJACENT DUPLICATES FROM it_usnam COMPARING usnam.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = c_retusnam
PVALKEY = ' '
dynpprog = c_dynpprog
dynpnr = c_dynpnr
dynprofield = p_0019
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = c_s
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = it_usnam
field_tab = it_usnam.
return_tab = l_it_ret
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
*ENDFORM. " f_f4help_usnam
*& Form f_f4help_wbs
To create F4 help for wbs element
-->P_0039 text
*FORM f_f4help_wbs USING value(p_0039) TYPE any.
**// To retrive wbs element from mseg
SELECT pspel
FROM pspl
INTO TABLE it_wbs.
SORT:it_wbs BY wbs.
DELETE ADJACENT DUPLICATES FROM it_wbs COMPARING wbs.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = c_retwbs
PVALKEY = ' '
dynpprog = c_dynpprog
dynpnr = c_dynpnr
dynprofield = p_0039
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = c_s
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = it_wbs
FIELD_TAB =
return_tab = l_it_ret1
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
*ENDFORM. " f_f4help_wbs -
How to create a form that can auto-populate all fields based on a specific selection?
We have created a template for each type of package used in our business. The template is the same but depending on the package selected, the fields would be populated differently. How can we create a template to load the fields based on the specific package selected? We use Adobe Acrobat Pro in creating the templates.
This forum is for the Adobe FormsCentral (http://formscentral.adobe.com) which is a service that allows you to create, collect and analyze data using an online web form. You should ask Acrobat/PDF related form questions in the Acrobat forums:http://forums.adobe.com/community/acrobat/acrobat_windows
I'll move your post to that forum so you don't need to retype it. They can help you out...
Randy -
Automatically fill input fields based on selection from dynamic drop down
Hi All,
I tried to search before posting, but i cannot find appropriate thread (maybe wrong keyword).
My scenario:
1. In my offline interactive form, I have:
a. Material Number --> drop down field with "Allow Custom Text Entry" ticked
b. 1 execution button to call web service
c. Material Group - Input Field (Read Only)
2. User will enter material number with wild card character (eg: ABC*).
User will then click the execution button.
Web Service in result will return all materials that match the entered material number.
Dynamic binding will do the magic to generate the drop down list.
3. Beside material number, web service will also return material description and material group.
Below is the illustration:
Material Description Material Group
ABC Material ABC GRP01
ABCDE Material ABCDE GRP02
--- so far so good ---
My requirement:
Every time user select material from the drop down list, i want to auto-populate field "Material Group" (which value is also returned by web service).
I know i need to put the script on event change of the drop down field.
But i don't know how to read internal table returned by web service.
Hope someone can enlighten me.
Thanks in Advance !!!Solved after reading:
1. /people/juergen.hauser2/blog/2007/09/03/accessing-data-nodes-in-sap-interactive-forms
2. Chapter 7 of Live Cycle Designer Scripting Basics
(http://help.adobe.com/en_US/livecycle/9.0/LiveCycle_Designer_Scripting_Basics.pdf)
Thanks. -
How to auto populate a field based on drop down list unless specific item is selected
Hi all,
Apologies if I have posted this in the wrong area but I am new to Adobe LiveCycle, JavaScript and these forums.
I am trying to build an Acrobat form using LiveCycle but am having trouble with the drop down lists.
Inititaly I simply wanted to populate fields in one table based on the selection of a corresponding drop down list in another table.
I used the following code and it worked fine:
Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*].Row4.Cell1");
var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[*].Row4.Cell1");
for (var i=0; i <= fFrom.length-1; i++) {
fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
The problem is that now I want the above code to work UNLESS one of the items in the dropdown list is specifically selected in which case I want the text box in the other table to display a message such as "Enter details in the field below".
I have tried to create an If Else statement using the following code:
Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*].Row4.Cell1");
var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[*].Row4.Cell1");
for (var i=0; i <= fFrom.length-1; i++) {
if (fFrom.item(i).rawvalue = "Option 3"){
fTo.item(i).rawValue = "Enter details in the field below";
else {
fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
The code now populates the field with "Enter the details in the field below" no matter what item I select from the dropdown list.
Your help is greatly appreciated.
Cheers,
ozzy_qFollow Up:
Ok so ive changed things up a bit and have had some more success.
I have used a Switch statement in my For loop to perform different actions based on the item selected.
The code looks like this:
Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*] .Row4.Cell1");
var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[* ].Row4.Cell1");
for (var i=0; i <= fFrom.length-1; i++) {
switch (fFrom.item(i).rawValue)
case "Option 3":
fTo.item(i).rawValue = "Enter the details in the field below";
break;
default:
fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
break;
This code solves my problem but has thrown up a new issue:
When i select Option 1 or 2 from the dropdown list the change in the text field is instantaneous, however if I select Option 3 it wont appear in the text field until I either select Option 3 a second time or select another item. Its as if the text field is a selction behind what I have enterd in the dropdown list.
Any thoughts? -
How to get input fields based on selection
Hi
i have dropdown which cointains 1 to 10 numbers,as soon as we select 2 in dropdown 2 input fields should be displayed.can u please help me in solving this problem
thanks
kishoreHI,
1:Add one child TransparentContainer to RootContainer with id TransparentContainer1
2:Take one attribute of type integer in context
3:When dropdown selected set the selected value to this attribute like
wdContext.currentcontextElement().set<value>(wdContext.current<DDNode>Element().get<DDValue>);
4:And in do modify view Method, put following code
IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("TransparentContainer1");
if(tc!=null)
tc.destroyAllChildren();
int number=wdContext.currentContextElement().getNumber();
IWDNodeInfo info=wdContext.getNodeInfo();
if(!(wdContext.isEmpty()))
wdContext.getContext().reset(false);
for(int i=0;i<number;i++)
IWDInputField inp=(IWDInputField)view.createElement(IWDInputField.class,"inp"+i);
info.addAttribute("val"+i,"com.sap.dictionary.double");
inp.bindValue("val"+i);
tc.addChild(inp);
Regards
LakshmiNarayana -
Show or hide form fields based on cfselect selection
Hi,
I'm using ColdFusion 9 and
I want to show/hide a form field type=checkbox if an assigned value is selected in a dropdown list, but it doesn't work.
I use a javascript function.
My question is: Are there better possibilities with ColdFusion to do this or is Javascript the best solution???
Here is my code:
<script type="text/javascript">
function show(){
var select = document.getElementById('dropdownlist').selectedIndex;
if(select == 1) document.getElementById('area').style.display = "block";
else document.getElementById('area').style.display = "none";
</script>
<cfquery name="select_list">
select * from table
</cfquery>
<cfform name ="form">
<cfselect name="dropdownlist" onChange="show();">
<option value="0">please select</option>
<cfloop query="select_select_list">
<option value="#select_select_list.id#">#select_list.name#</option>
</cfloop>
</cfselect>
<div id="area" style="display:none">
<cfloop query="select_list" >
<tr style="display:none">
<td>
<cfinput name="gsu" type="checkbox" value="#select_list.id#"> #select_list.name#
</td>
</tr>
</cfloop>
</div>
</cfform>
Thank you and best regards!
ClaudiaOkay, thank you for your answer.
I changed the javascript function and replaced the <div> with the <table> tag. Then it works.
Here is an extract of my code:
<script type="text/javascript">
function show(){
var select = document.getElementById('dropdownlist');
var strUser = select.options[select.selectedIndex].value;
if(strUser== 1) document.getElementById('area').style.display = "block";
else document.getElementById('area').style.display = "none";
</script>
<cfquery name="select_list">
select * from table
</cfquery>
<cfform name ="form">
<table id="area" style="display:none">
<cfloop query="select_list" >
<tr">
<td>
<cfinput name="gsu" type="checkbox" value="#select_list.id#"> #select_list.name#
</td>
</tr>
</cfloop>
</table>
</cfform> -
Showing/Hiding certain fields based on Radioset selection
Hello all,
I'm like to know whether it is possible to Show/Hide certain fields using a RadioSet selection as it is done in Forms in ADF UIX. Kindly go through this post.
Showing/Hiding certain fields based on Radio Group selection
kindly help me out on this.
Thanks & Regards,
Arun.VHi Arun,
Here is what I do with my checkboxes, but I think that the radiobutton will do the same:
<af:selectBooleanCheckbox text="selectBooleanCheckbox 1"
label="Label 1"
binding="#{backing_page1.selectBooleanCheckbox1}"
id="selectBooleanCheckbox1"
autoSubmit="true"
immediate="true"/>
<af:inputText label="Label 1" binding="#{backing_page1.inputText1}"
id="inputText1"
disabled="#{!backing_page1.selectBooleanCheckbox1.selected}"
partialTriggers="selectBooleanCheckbox1"
value="#{backing_page1.selectBooleanCheckbox1.selected}"/> -
How to: Create a master form that auto-fills data into other pdf forms?
I hope someone can please help me. I have about 15 PDF forms that all require similar data entry (name, address etc). Can I create a master form that we fill in once per client, and then auto-fill in the matching data on the 15 forms?
I am not looking for an online solution as the information is highly sensitive.
I have already created a form in Acrobat X Pro with the 'master data', and created the (15) forms with identically named fields. How I link the forms now to the master, I cannot figure out (after much searching).
I have read similar questions on the same topic but have not found any answers. I hope this time someone can please help.
Many thanks in advance.Thank you! I had just figured out how to export the data from the master as an FDF file and then import it to the other files. I'm afraid I don't understand scripting to automate the process across multiple files. To you mean with java script?
I've also thought about combining the forms, once we know which ones the particular client will need. I have to see how it works in practice for my colleagues who will be using them.
Thank you again. -
In a document library, offering only certain options for fields based on others selected
Hi, I have a document library, and when someone uploads an item to that library, they are presented with a form to select properties. I have 4 properties I want them to select (really 6, but the first two are Name and Title). The issue is that these 4 properties
depend on each other in this way:
1st property: I use a lookup to offer 4 choices, "A" "B" "C" or "D" in a dropdown.
2nd property: I want to offer the user a choice of 4 items in a dropdown, based on what they chose for the 1st property. (if they chose "A", then offer "1" "2" "3" or "4", if they chose
"B" offer "5" "6" "7" or "8", etc.)
3rd property: same thing as above, but now based on what they chose for the 2nd property (if they chose "1", offer "a" "b" "c" or "d", if "5" offer "s" and "t")
4th property: again based on 3rd property.
How can I do this? can I write some sort of custom form that can do this?What you're trying to do is commonly refererd to as 'Cascading Drop Downs'. These are a common lack in SharePoint.
There are lots of ways to do that, my favourite to use jQuery or Javascript:
http://www.sharepointboris.net/js/spcd/
Maybe you are looking for
-
HT4437 just bought apple tv 3rd gen and can't get it to airplay my 4th gen Ipod and my Iphone
hi all I just bought an apple tv and was all excited about getting it paired up with my Iphone and Ipod I brought up itunes on my toshiba satellite laptop running windows seven and I don't see any place to install the code that the remote app keeps t
-
We were given this iPod touch from a friend. Here is what I have done so far. Reset it back to factor settings. Added my music. Set up the wifi through my home internet. And it keeps telling me that it cannot connect to iTunes. Don't know what
-
Result Handler in Synchronus Mode?
Hi, When i call the remote method from Flex to Java, a callback thread will be started which handles both the result and fault in 2 different methods. But i have a scenario like this. 1) Call the remote Method from Flex to Java through BlazeDS.
-
Printing Wirelessly on HP Printer
I have a Macbook computer and am attempting to connect to an Hp Laserjet 2600n Printer based on a windows computer. I can add the Laserjet to my list of printers but when I attempt to print wirelessly it wont let me. What can I do to fix this problem
-
Hi all. This just started today and it seems to only happen (twice now) after awaking from sleep mode and power-up. After waking from sleep, I can't use any keyboard shortcuts to restart my system, thus requiring me to "hard" boot the machine. Then i