Dynamic form population
Hi all,
I found a tutorial that has the following:
<FORM name="selections">
<table border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td nowrap height="11">
<select name="example" size="1" onChange="redirect(this.options.selectedIndex)">
<option selected>---Select1-------------</option>
<option>Webmaster Sites</option>
<option>News Sites</option>
</select>
<select name="stage2" size="1" onChange="redirect1(this.options.selectedIndex)">
<option value=" " selected> </option>
<option value=" " selected>---Select2--------------</option>
<option value=" " selected>---Select2--------------</option>
</select>
<select name="stage3" size="1" onChange="redirect2(this.options.selectedIndex)">
<option value=" " selected> </option>
<option value=" " selected>---Select3----------------</option>
<option value=" " selected>---Select3----------------</option>
</select>
<script>
<!--
Triple Combo Script Credit
By Hamid Cheheltani/ JavaScript Kit (http://www.javascriptkit.com)
Visit http://javascriptkit.com for this and over 400+ other scripts
var groups=document.isc.example.options.length
var group=new Array(groups)
for (i=0; i<groups; i++)
group[i]=new Array()
group[0][0]=new Option("---Select2---"," ");
group[1][0]=new Option("Now Select This One"," ");
group[1][1]=new Option("JavaScript","47");
group[1][2]=new Option("CSS","46");
group[1][3]=new Option("Ajax","45");
group[2][0]=new Option("Now Select This One"," ");
group[2][1]=new Option("General News","115");
group[2][2]=new Option("Technology News","116");
var temp=document.isc.stage2
function redirect(x){
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null
for (i=0;i<group[x].length;i++){
temp.options[i]=new Option(group[x][i].text,group[x][i].value)
temp.options[0].selected=true
redirect1(0)
var secondGroups=document.isc.stage2.options.length
var secondGroup=new Array(groups)
for (i=0; i<groups; i++) {
secondGroup[i]=new Array(group[i].length)
for (j=0; j<group[i].length; j++) {
secondGroup[i][j]=new Array() }}
secondGroup[0][0][0]=new Option("---Select 3---"," ");
secondGroup[1][0][0]=new Option("---Select 3---"," ");
secondGroup[1][1][0]=new Option("Now Select This One"," ");
secondGroup[1][1][1]=new Option("JavaScript Kit","http://javascriptkit.com");
secondGroup[1][1][2]=new Option("Dynamic Drive","http://www.dynamicdrive.com");
secondGroup[1][1][3]=new Option("Java-Scripts.net","http://java-scripts.net"); Option("Now Select This One"," ");
secondGroup[1][2][1]=new Option("CSS Drive","http://www.cssdrive.com");
secondGroup[1][2][2]=new Option("CSS Library","http://www.dynamicdrive.com/style/");
secondGroup[1][2][3]=new Option("CSS Help Forums","http://www.codingforums.com/forumdisplay.php?f=13"); Option("Now Select This One"," ");
secondGroup[1][3][1]=new Option("Ajaxian","http://www.ajaxian.com");
secondGroup[1][3][2]=new Option("Ajax Scripts","http://www.javascriptkit.com/script/cutindex11.shtml"); Option("---Select 3---"," ");
secondGroup[2][1][0]=new Option("Now Select This One"," ");
secondGroup[2][1][1]=new Option("CNN","http://www.cnn.com");
secondGroup[2][1][2]=new Option("MSNBC","http://www.msnbc.com");
secondGroup[2][1][3]=new Option("ABC News","http://www.abcnews.com"); Option("Now Select A Page"," ");
secondGroup[2][2][1]=new Option("News.com","http://www.news.com");
secondGroup[2][2][2]=new Option("Wired","http://www.wired.com");temp1=document.isc.stage3
function redirect1(y){
for (m=temp1.options.length-1;m>0;m--)
temp1.options[m]=null
for (i=0;i<secondGroup[document.isc.example.options.selectedIndex][y].length;i++){
temp1.options[i]=new Option(secondGroup[document.isc.example.options.selectedIndex][y][i].text,secondGroup[doc ument.isc.example.options.selectedIndex][y][i].value)
temp1.options[0].selected=true
secondGroup[1][2][0]=new
secondGroup[1][3][0]=new
secondGroup[2][0][0]=new
secondGroup[2][2][0]=new
var
function redirect2(z){
window.location=temp1[z].value
//-->
</script>
</td>
</tr>
</table>
</FORM>
<p><font face="arial" size="-2">This free script provided by</font><br>
<font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
Kit</a></font></p>
Is there a tutorial that can show me how to do the same thing as this, but have the drop down boxes populate from a database instead of from predefined vales?
thanks.
I'm a bit confused by the question. Are you saying that you want the textbox to automatically update it's value everytime the combo box's currently selected item is changed. And you want the value assigned to the textbox to come from some place other than the value of the currently selected combobox item. Where should the value for the textbox come from? Looking at this it seems like you may want a simple map data structure that maps each combo box element to a description string. When the combo box is modified you should grab the currently selected element and lookup the description for that element in the map data structure and then set the textbox to the looked-up description. I may be missing something here..
Similar Messages
-
We have a dynamic form that grows as required. We have one barcode on the master page. As form grows to next page only the contents on that page (ie page 2) must be on the barcode on page 2 and page 1 content only on page 1. But if the form goes back to normal then the contents must not be on the barcode anymore.
Could anyone assist on this problem please?Hi Brad ,
For your issue, you can view the Upgrade Status page in Site Settings to verify that upgrade has succeeded for a site collection.
To view upgrade status in Site Settings
1.Verify that the user account that performs this procedure is a site collection administrator.
2.On the Site Settings page for the site collection, in the Site Collection Administration section, click Site collection upgrade.
3.On the Site Collection Upgrade page, click Review Site Collection Upgrade Status.
4.The Upgrade Status page for the site collection is displayed.
For more information, see
Manage site collection upgrades to SharePoint 2013
Also you can go to _layouts/15/reghost.aspx (Site Settings -> Site Actions -> Reset to site definition) and reset the master page gallery to site definition version.
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Is it possible to update multiple tables with a dynamic form?
I have columns from two tables populating a dynamic form. I am trying to have the form update both tables on submit. I have tried both a linked transaction and a custom transaction but I am not making progress. Only the master table is being updated. Is it possible with ADDT to update two tables with a dynamic form?
I meant
SXMSMSTAT
SXMSSYERR
Thanks. -
I'm trying to populate a drop down box in a form(form2) dynamically using a form variable from a different form(form1) on the same php page. does anyone know what i should set the action as for form 1 so that when form 1 is submitted form 2 is populated from the form variable? Any advice is appreciated.
Your could use either method, POST or GET. <form action='' method="post">
Then put code such as the following somewhere, probably above the forms.
if ($_POST['name_of_form_one_submit']){
$variable1 = $_POST['variable1'];
Then your dropdown in form2 will dynamically be populated with the variable as follows:
<select name='drop_down_variable_name'>
option value= "<?php echo $variable1 ?>"><?php echo $variable1 ?></option> -
Re-display repeating XML data in dynamic form
I have a dynamic form with repeating data in my XML that populates it. I need to display the repeating data in one of 2 different ways, depending on which business segment the user viewing it is associated with. I have tried 2 ways to accomplish this, neither has worked for me.
Attempt 1: Create 2 separate subforms and hide the one that should not be shown. The first subform in the layout displays just fine and is populated with records, but the second subform never displays any records. This appears to be an issue with the XML node already having been parsed and displayed and does not get displayed again. Is there a way to move the cursor, or pointer, or whatever you call it in XML-speak back to the top of a repeating node to re-display data?
Attempt 2: Create a single subform that contains 2 other subforms - one for each view, which lay atop each other. A script command hides the view the shouldn't be displayed. The problem I ran into here is that the records don't display properly. In my example, there are 3 records in the repeating section, the first displays fine, the second is missing some fields and is pulling some data from the first record. The third record displays no data at all. I deleted the one of the 2 subforms and previewed the form again, now all of the records displayed just as they should.
Any ideas or suggestions would be appreciated.
Thanks,
ChadThat code also produces text in the textfield. What "specific parts" are you trying to display?
textfield.text = (xml.bar[0].text());
textfield.text = (xml.bar[1].text()); -
Pre-populate dynamic form with XFDF
I am trying to pre-populate a form saved in Designer as a dynamic form. If the form is saved in either the 6.0 compatibile, or the 7.0 static pdf file format, my XFDF file works fine. If I open the PDF in Designer and save it as a dynamic form, the XFDF file opens the form in reader, but no data is populated.
I have searched everywhere and haven't found any information on this. Any help is greatly appreciated.OK... so here's the update. The PDF file only has one vertically expanding field (a "Description") field on the page and it takes up about 2 vertical inches. If I open the PDF in Reader I can type into it and everything expands and flows correctly. If I use an XFDF file that contains a lot of data in the Description field, everything comes up perfectly. However, if I either modify my XFDF file, OR create an XFDF file that only has a tiny amount of data in the Description field (1-2 lines), the PDF is opened and no data is displayed anywhere in the form. If you click on a text field, any data that should be there magically appears. When you navigate out of that field, it disappears.
This only happens if the XFDF file has a Description field value that doesn't cause the PDF Description field to expand past the 2 inches.
I am new to Designer 7.0 and this is my first file that has dynamic flowing fields... is this a bug, or am I missing a property somewhere?
Thanks -
Importing data into dynamic form
I have not yet had a chance to work with LiveCycle, and I have been given a project which I need to determine if LiveCycle would be the correct solution. The client originally wanted this to be a Microsoft Word form, but I doubt that I can meet the requirements using Word.
I need to design a form which a user can enter multiple line items either manually, or by importing existing data. The data itself would be about 40-50 distinct pieces of data, in a block of several sections and multiple lines (i.e Name, Address block, Phone/fax/email, contact and comment section, etc) and would be a combination of text fields and checkboxes. There would be 2-3 of these blocks per page (with a static header/footer), plus a cover page with data fields for the organization using the form.
I know that I could create this type of dynamic form in LiveCycle to be entered manually, but I don’t know what options, if any, I would have in giving the user the ability to import existing data from an unknown source (could be a text file, a local or hosted database, excel, etc.).
My questions are about the feasibility of LiveCycle for this project:
Can data be imported from a data source the user chooses? Are there any limitations to what kinds of data sources can be used? Would I need to program a custom function to allow the user to match the proper fields for the import, or is there a built in function to handle this?
Would there be any platform/application limitations? Can the form be used with Reader on a desktop computer (Mac or PC), or on a tablet (and if so, is a specific app necessary instead of the default app)?
Are there any other foreseeable issues I may have to deal with?Thanks for the info. A few followup questions if you don't mind:
1. Needs to configure an ODBC-connection on every system it is used.
This form will be sent to our client, and they will send it to their customers. Can the connection setup be scripted, or is it simple enough that a generic set of instruction can be given to the end user to allow them to setup the connection and map their fields to the form's content easily?
2. Requires Acrobat or a reader-enabled from to use in Reader. Data is automatically populated in the form fields. Only xml files for import allowed. Allows to use XSLT to format imported data.
I doubt that the end user would have their data in a compatible XML format, so this option may not be necessary. Is Reader-enabling a form in LiveCycle comparable to the process in Acrobat? I have heard LiveCycle Enterprise is very expensive and required for certain functions, does this apply here? Does this require a specific server setup for these forms?
3. Difficult scripting to update field values automatically. Works in Reader and Acrobat.
The data would not need to be updated automatically, just pull current data into the form. This would be a one-way operation, there would be no need to update the data source from values within the form. I would still need to give the user a way to map their fields to the form.
Are you aware of any tutorials or example files that would help give me a start? I had a brief look at the LiveCycle Designer ES2 Scripting Reference, but I"m not sure which objects to look into.
None of these methods will work on mobile devices as there is currently no support of XFA in Reader Mobile.
Good to know. The same is probably true if I were to create the form in Word/Office. -
HELP!!! Can anyone please provide some guidance on how to create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box.
I have a form which – based on the department that's selected from a drop-down box – will have different form fields/text boxes, etc, made available.
Is this possible in LiveCycle, if so, can you please provide the script/info - as needed.
Thanks,In the preOpen event of the second dropdown list you put something like (in formCalc):
if (dropdown1 == 1) then
$.clearItems()
$.setItems("Year, 2 Year, 3 Year")
elseif (dropdown1 == 2) then
$.clearItems()
$.setItems("3 Year, 4 Year")
endif -
Get values from dynamic form items
Hi All,
I create a dynamic form with text input component
private function buildForm():void{
var numberOfColumns:Number = 5
var formItem:FormItem = new FormItem();
var hBox:HBox = new HBox();
for(var i:Number=0; i< numberOfColumns; i++) {
var formInput:TextInput = new TextInput();
formInput.text = "test";
formInput.id = "txt_" +i;
hBox.addChild(formInput);
formItem.addChild(hBox);
loansForm.addChild(formItem);
I can see the text input components, update the values.
How can I get the updated values from the input components?
I try this["txt_" + i].text but not working. It's not finding the component with the dynamic value.
Any ideas?
Thanks
JohnnyHi,
Here is the related thread, u will get some help
http://forums.adobe.com/message/3075226
Thanks and Regards,
Kanchan Ladwani | [email protected] | www.infocepts.com -
How to create a dynamic form with bind variables :schema & :table_name
My application has two LOV's, one to select a schema, and the next to select a table within that schema. I then have a button which passes me to a report which displays the data in that table.schema.
I now want to create a link to a form where I can edit the record based on the rowid of that table.schema, but it doesn't appear that I can create a dynamic form where I pass the schema.table_name and rowid. Is this possible? Can anyone advise how I can do this? The form builder only wants a fixed schema/table name.
Thanks in advance.
Stuart.Hi Stuart,
In this sort of situation, you will need to be a bit creative.
I would suggest a pipeline function called as if it was a report.
Then you can pipe out the required fields.
Since you will have a variable number of fields, you could use two of the multi row field names for your field names and values.
Then after submit, you can create your own procedure to loop through the fields (stored for you in the Apex package) and update the table as required.
Not very specific I'm afraid, but it should work.
Regards
Michael -
Hello,
I have designed a dynamic form, where user can add rows dynamically by clicking a button on the form, the form is working fine in preview in designer.
this form is initiating a LC WF process, but, if I deploy this form to form manager as an XDP and choose to render it to PDF, adding rows function does not work, however if I save this as dynamic PDF from LC designer and deploy it again to form manager, it works !!
However, I can not use PDF generated from LC Designer since I found that commenting and annotations are not working ( I am using acrobat ) which is an important feature, also, web services calls are not working even, again from Acrobat!
How can I set the form server installed with workflow server to render XDP templates into dynamic PDF forms ?
Or alternatively how to enable commenting and fix web service calls in PDF rendered form ?
Thank you for help,
Greetings,By default Forms and Form Manager are configured to render a PDF as either static or dynamic based on some values in the XDP. By default those values will tell it to render a static PDF. What you can do, in Designer save as a dynamic PDF, then open the dynamic PDF in Designer and save as an XDP. Upload that XDP to Form Manager, the tags will be present to tell it to be rendered as a dynamic PDF. There's a better way if you are using Designer 7.1 and Forms 7.1, but since I don't know your environment this is a way that will work regardless of versions.
Annotations will not work in dynamic PDF's though. Currently annotations make no sense in dyanmic PDF's since the template of the PDF can dynamically change while annotations are bound to a specific location. IE: You have a dynamic PDF that is initial 4 pages and add an annotation to page 4. Later the template of the PDF changes based on data and user interaction and it is now a 2 page PDF, but the annotation is still on page 4 which no longer exists...
Chris
Adobe Enterprise Developer Support -
Remove scroll bars in dynamic form
Hi all,
I'm starting to kick myself every time I put a post here. Apologies and thank you for everyone's help - slowly but shortly I'll be one of the people answering the questions.
Really easy one (I think). A have a dynamic form, which updates a dynamic list. Is there a way to alter a text area in the dynamic form, so that it is a fixed area i.e. when you get to the end of the line/characater usage, the cursor goes down to the next line rather than creating a horizontal scroll bar and running forever into the distance. I have played around with Wrap options without luck, the css doesn;t seem to play much of a part as this is an actual text area in Dreamweaver as opposed to a CSS clipping in the list.
Thanks again,
NathanNJFuller wrote:
Perfect! Thank you Albert. Is it possible to add virtual wrap to a box in a dynamic list? As that is not presented in a normal html form'ish style way.....?
Hi Nathan,
as a Dynamic List displays pure text only, you´ll need to help yourself by formatting the displayed column using PHP. There are several ways to add "virtual" line breaks, and the most straightforward (though certainly not the most elegant) solution would be to apply the PHP function wordwrap which wraps a string to a given number of characters.
The following example will wrap the text after 40 chars, and the "wordwrap" function will - as always - have to replace ADDT´s default "KT_FormatForList" function:
<?php echo wordwrap($row_rsqueryname1['columnname'], 40, "<br />\n"); ?>
Cheers,
Günter -
How to make my dynamic form pages flow correctly?
I have created a dynamic form which has multiple questions with expandable text fields that will take multiple pages once completed. I do not know how to make the form flow correctly past the first page. I can attach the form if I knew how to do that.
Thank you Paul. Your editing assistance was greatly appreciated. I think I now understand that there should be only one page subform that is flowed, regardless of how many text box objects I have in my questionnaire. This did the trick.
-
My dynamic form - issue with saving data (urgent-i would greatly appreciate any help)
Hello,
I have some problems with this dynamic form (created in livecycle) http://www.pathology.ubc.ca/Academic_Activity_Data_Form_Jan_4_2013.pdf . It doesn't save data unless I add a' new row' to any of these tables. There are a few text fileds and if I type anything in there data won't be saved unless I trigger it by adding randomly a table row. This is big problem as this form will be used for updates and if I want to change any of my entered records I will always have to remember to 'add a new row' otherwise just adding/changing text won't be saved. This might sound confusing but you will understanding what is going on if you type in your name and save the form and then type in your name, add a table row and save the form (first case won't be saved second will).
I would greatly appreciate any help.
DebbieHi Marco Russo ,
= CALCULATE (
SUM ( [measure] ),
PARALLELPERIOD (
SAMEPERIODLASTYEAR ( DateTime[DateKey] ),
0,
QUARTER
I have used the above DAX function it is working fine and i have applied same for Year , Quarter and Month
But when i remove month filters (Slicer) and Year filters in Power view report
it is showing total Year values for Year and Quarter values
for Quarter etc..
Like below i am getting
Last Yr Month Amt Current Yr Month Amt Last Yr Qtr Amt Current Yr Qtr Amt Last Yr Current Yr
10000 30000 10000 30000
30000 30000
but i need Blanks in report if i am not selecting any filters
thanks,
Sreeni -
Page Number Disappesrs when click on Reset button in Dynamic Form
Dear all,
In dynamic forms I have taken Page n of m field outside the content area in master pages.I have added the reset button in body pages of the form.In the pdf When I click on Reset button the page nos are disappearing along with the other data.
I want the page no should not disappear.How can I get rid of this problem. If any body can please help me.
Thanks a bunch in advance
Regards
RakeshFirefox checks on the server if the file has been modified if you use the back button.<br />
If the page was requested by sending post data to the server then Firefox sends that post data and asks for confirmation.<br />
You can try to use the tab history of the Back button skip sites that require sending post data.
You can also try if it works if you set to never check the server by setting the browser.cache.check_doc_frequency pref to 2.
*http://kb.mozillazine.org/browser.cache.check_doc_frequency
Maybe you are looking for
-
Is it possible to create a Event Reciver program as Sandbox solution? - SharePoint 2010
Dear All, I try to create a Event receiver program as SandBox solution in SharePoint 2010. I want to do a list item updation using this event receiver. Almost all the internet help & examples seems to be written with Farm solution and I got plenty of
-
Dear All, While starting ODI agent,its failing with the below error 2011-07-06 10:05:41.104 NOTIFICATION ODI-1128 Agent ODI_AGENT is starting. Application Server: STANDALONE. Agent Version: 11.1.1.5.0 - 22/04/2011. Port: 4999. JMX Port: 5999. 2011-07
-
Had Search Criteria and the result is displayed in the table in a panel header . I want to get the selected row value and parse the value to next Vo in next page for a bind variable . So i need to handle the tbale value by biniding to the bean ,
-
New/Updated free plugins for FCE
A couple of new plugins are available for free in my Final Cut Express/Pro Effects and others have been improved in their use of alpha channel, composition methods, and precision in object sizing (both new and updated plugins have a NEW flag in my we
-
IPad 2 sync error (-50) : how do I identify bad image(s)?
I have a recurring error when I try to sync my iPad 2: I get "The iPad cannot by synced. An unknown error occurred (-50)." I've searched the forums and: 1. Removed the photo cache (didn't help but now only photos on iPad are the Camera Roll) 2. Resto