Passing form variables in a single form
I am trying to make a form to select a starting and ending
month for a event search.
I have 2 list boxes populated with the months, but I want the
second box to begin from the first selection.
So if the user selects may in the first box, the second box
should list from may to december.
Is there any way to pass a form variable to another field
inside the same form?
I want to use a conditional <cfloop> to populate the
second box like <cfloop from= #variableA# to= 12>
then have the <options> inside the loop.
Thanks in advance for any help you can provide...this one has
me stumped!
You can do it with javascript. Google related selects, there
are lot's of examples out there.
What happens if the user selects December in the 1st
box?
Similar Messages
-
How to pass JavaScript variable value throuh netui form ??
Hi All,
I have reqmnt,where in I need to pass the value from JavaScript function through
Form submission.
I could able to pass this through simple HTML form using SIMPLE HTML tags. How
can i do the same thing using NETUI tag (NETUI form)??
Can somebody throw some input on this??
TIA,
RAM.Excellent - Thats what I was also looking.
RAM.
Thomas Cook <[email protected]> wrote:
>
Here's an example of what I think you're trying to do:
<netui:html>
<body>
<netui:form action="submitIt" tagId="myForm">
<netui:button value="Submit It" onClick="return setFormValue()"/>
<script>
function setFormValue()
var form = document.getElementById( getNetuiTagName( "myForm",
this ) );
var newVal = document.createElement( "input" );
newVal.type = "hidden";
newVal.name = "foo";
newVal.value = "bar";
form.appendChild( newVal );
return true;
</script>
</netui:form>
</body>
</netui:html>
Thomas
RAMt wrote:
Hi All,
I have reqmnt,where in I need to pass the value from JavaScript functionthrough
Form submission.
I could able to pass this through simple HTML form using SIMPLE HTMLtags. How
can i do the same thing using NETUI tag (NETUI form)??
Can somebody throw some input on this??
TIA,
RAM.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body>
Here's an example of what I think you're trying to do:<br>
<br>
<tt><nobr><netui:html></nobr><br>
<nobr> <body></nobr><br>
<nobr> <netui:form action="submitIt" tagId="myForm"></nobr><br>
<nobr> <netui:button value="Submit It" onClick="return
setFormValue()"/></nobr><br>
<nobr> <script></nobr><br>
<nobr> function setFormValue()</nobr><br>
<nobr> {</nobr><br>
<nobr> var form
= document.getElementById( getNetuiTagName(
"myForm", this ) );</nobr><br>
<nobr> var newVal
= document.createElement( "input" );</nobr><br>
<nobr> newVal.type
= "hidden";</nobr><br>
<nobr> newVal.name
= "foo";</nobr><br>
<nobr> newVal.value
= "bar";</nobr><br>
<nobr> form.appendChild(
newVal );</nobr><br>
<nobr> return true;</nobr><br>
<nobr> }</nobr><br>
<nobr> </script></nobr><br>
<nobr> </netui:form></nobr><br>
<nobr> </body></nobr><br>
<nobr></netui:html></nobr></tt><br>
<br>
Thomas<br>
<br>
RAMt wrote:
<blockquote cite="[email protected]" type="cite">
<pre wrap="">Hi All,
I have reqmnt,where in I need to pass the value from JavaScript function
through
Form submission.
I could able to pass this through simple HTML form using SIMPLE HTML
tags. How
can i do the same thing using NETUI tag (NETUI form)??
Can somebody throw some input on this??
TIA,
RAM.
</pre>
</blockquote>
</body>
</html> -
How to pass presentation variable with enclosing single quotes
HI All,
As all of you know in 11g, Presentation variable can hold more than one value.So we can pass multiple values to the report through presentation variable.
If we select x,y,z values from prompt drop down,then those values will be stored like x,y,z in the presentation variable.
but I would like to store these values with enclosing single quotes like 'x,y,z'
The reason is I need to pass this variable value as input to BI Publisher sql dataset query where clause.
Please share your Ideas.
Thanks,
AravindAravind,
Check this
Predefined Presentation Variables in OBIEE 11G | Praveen&#039;s Blog -
Integration of two Form and making a single form
Hi All,
I have developed two Oracle Apps Costume form
Each form has there own logic and it has developed with the content cnavas.
Now the client is interested to put both the form with single prompt and it is having TAB.
Mence I need to do it in TAB canvas.
Can Some one help me that how do I copy paste the logic and as well as the layout I developed in content canvas to Tab canvas.
so that my rework will minimize.
If Any body has any idea please let me know.Its urgent.
In the mean time I am also trying in some different ways.
Thanks
NiharJust been trying this (in a quiet moment in the office), and I would suggest:
Decide which will be the target form.
In the target form create canvases to match the source form.
Drag the blocks in question from the source to target form (visible item should appear on the corresponding canvas).
Create the tabbed canvas.
Drag items from other canvas to tabbed canvas.
Make sure everything is in the right blocks and on right canvases.
Drop the objects you no longer need.
Make everything look pretty.
Make sure navigation works.
Go home for tea. -
How to consolidate conutry specific forms in to a single form
Hello,
I have a requirement where I have to consolidate the country specific forms into a single form. Have country specific forms like France has its own form and US has its own form. How to consolidate these forms into a single form? What is the process?
I appreciate your responses.
Thanks,
mpHello,
you can use the following way to include different languages.
Create the Text elements in different languages.
Then you can call them in your script by giving the language parameter.
For example:- I have created a text object as ZHEX-MACRO-4MARKEN and then called with language parameter as below.
INCLUDE ZHEX-MACRO-4MARKEN OBJECT TEXT ID ST LANGUAGE EN
Thanks,
Manish -
Passing A Variable From Active Sync Form To WorkFlow
Hi All,,
I am calling a Workflow from the Active Sync form, Which is fine.
But, the problem is , i am having a variable "xxx" in the active sync form, but, i am unable to use this in the workflow.
So, Please any one can tell how to use a variale in Workflow, passed from a Form.
Waiting for reply....Thank you for your response.
Do you have a code snippet or other example that shows how to do this?
Thanks
Tim -
Can a form variable hold a javascript complex object?
I have a method in a fragmentScript script object that creates a javascript object formatted like below:
customerObject
name [string]
address [string]
city [string]
state [string]
list of accounts [array]
When the script is done executing, the subform containing the script gets hidden, and needs to pass the object to another subform which becomes visible.
Can I pass this object via a form variable (located under File-Form Properties, Variables tab)? That is, can a form variable contain a complex javascript object?
Thanks,
ElaineHey Bruce, I'm having a problem with the eval funtion returning a null, can you help me?
Here's my code snippet:
var tempRetCust = objFragment.resolveNode("returnCustomerObj"); //this is good
var objCustomer = myCustomerObject; tempRetCust= objCustomer.toSource(); app.alert("tempRetCust "
+ tempRetCust); // the toSource method works great and the alert here returns proper data
var retCust = eval(tempRetCust.value); if (retCust==null ) app.alert ("return cust is null"); // the eval doesn't seem to work and the retCust variable is null.
Thanks!
Elaine -
How to pass a variable from one form to another in Form 6i
I have a user-password screen in one form. And every module has separate form. I need to pass user-name and user-level to all the form.
I am using Form 6i and Oracle 8.
Thanx in advance
VikasDECLARE
PL_ID PARAMLIST;
BEGIN
pl_id := GET_PARAMETER_LIST(:your parameter name);
IF ID_NULL(PL_ID) THEN
PL_ID := CREATE_PARAMETER_LIST(:your parameter name);
ELSE
DESTROY_PARAMETER_LIST(PL_ID);
PL_ID := CREATE_PARAMETER_LIST(:your parameter name);
END IF;
ADD_PARAMETER(PL_ID,your variable,TEXT_PARAMETER,:PARAMETER.your parameter name);
call_form ('Your Fmx Here',HIDE,NO_REPLACE,NO_QUERY_ONLY,PL_ID);
END;
hope this will help...
regrds
Kris -
How do I pass a username form variable from a drop down list/menu to another page?
Hi,
I have a login_success.php page that has a drop down list/menu (which lists usernames). I want the user to click on their user name, and when they click the submit button the username information to be passed over to the username.php page which will contain a recordset, sorted by username.
How do I pass the username info from the drop down list/menu to the username.php page?
The drop down menu is connected to a recordset listUsername, I have filtered the recordset with the Form Variable = username, and I have used the POST method to send the username to the page username.php. I'm not sure how to structure the php or which page to place it on.
<form id="form1" name="form1 method="post" action="username.php">
<label for="username_id">choose username:</label>
<select name="username_id" id-"username_id">
<option value="1">username1</option>
<option value="2">username2</option>
<option value="3">username3</option>
<option value="4">username4</option>
</select>
<input type="submit" name="send" id="send" value="Submit" />
<input type="username" type="hidden" id="username" value="<?php echo $row_listUsername['username']; ?>" />
</form>
Could somebody help me please?
Thanks.I would not post the variable over, In this case I personally would send it through the URL and use the $_GET method to retreve it. For Example.
<html>
<head>
<title>Test Page</title>
<script type="text/javascript">
function userID(){
//var ID = form1.userIDs.selectedIndex;
var user = form1.userIDs.options[form1.userIDs.selectedIndex].value;
window.location = "test.html?userID=" + user;
</script>
</head>
<body>
<form id="form1">
<select name="userIDs" id="userIDs" onchange="userID();">
<option>Select a User</option>
<option value="1">User 1</option>
<option value="2">User 2</option>
<option value="3">User 3</option>
<option value="4">User 4</option>
</select>
</form>
</body>
</html>
//PAGE TO RETRIEVE THE USERNAME
<?php
if(isset($_GET['userID'])
$userID = $_GET['userID'];
echo $userID;
die; -
How to pass a form variable from page to page
I have a series of 4 forms on 4 pages that update a database.
A variable from one of the forms (doesn't matter which one, if it's
easier one way over another, let's go that way) is passed to the
last page, where a PayPal button will appear based on the value of
the form variable. I am using ASP javascript and an Access
database.
Thanks.jennivazquez wrote:
> I have a series of 4 forms on 4 pages that update a
database. A variable from
> one of the forms (doesn't matter which one, if it's
easier one way over
> another, let's go that way) is passed to the last page,
where a PayPal button
> will appear based on the value of the form variable. I
am using ASP javascript
> and an Access database.
Either store the variable in a hidden field in the
intermediate forms,
or use a session variable.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
How to pass Applet form variables without showing it on top ?
I am running one applet with some form variables. After submit I want to pass those to .asp file to store into database.
If I use URL method then all are getting displayed on URL location of browser which I do not want. I want to pass many form variables to another .asp file, so it may not be good also.
What is the best way of doing it ? Need urgent help about it.Well If you create a POST request instead as a GET request the variables will not show up in the URL.
On tips how to do that you can either check out this thread:
http://forums.java.sun.com/thread.jsp?forum=31&thread=56388
or one of these:
http://search.java.sun.com/Search/java?qt=applet+GET+POST+variables&col=javafrm&rf=0
Sjur -
How can I pass a variable between JSP and Role Form
I need to pass a variable from (a copy of) applicationmodify.jsp to the IDM Role Form so that the variable is available within the Role Form at display. We've tried getAttribute and setAttribute modifying both the Role Form and the applicationmodify JSP and can get the form to the role form but not accessible but have had no other success. Has anyone had any success in doing this? Any suggestions would be appreciated.
if by _root level you mean you're loading something into
_level0 you can't won't be able to use the localconnection. the
sharedobject is your only option. -
CAN I PASS FORM VARIABLES TO THE DATABASE PROCEDURE IN PERSONALIZATION
When I try to use form variable in the database procedure call from personalization I get the attached error.
Under forms personalization
From Actions tab --> builtin --> Execute Procedure when I call a database procedure and pass one of the form variable as parameter I get "ora-01008 couldn't be validate" error
Can we pass on form variables to the database package using personalization ? If yes, then is this the right way?
Message was edited by:
omitchelI tried customizing the Quoting Form, it works.
What you have done is correct, but this is how you call it
='begin
db_proc('''||${item.qothddet_main.quote_name.value}||''');
end'
here
qothddet_main : block name
quote_name : item name
Thanks
Tapash -
Form Variables Don't Pass for Some Clients
Recently, I’ve noticed some problems on one of my pages
where form field variables aren’t passing to my action page.
As far as I can tell, this is a new problem.
This is the error I’m getting:
Error resolving parameter FORM.EMAIL
The specified form field cannot be found. This problem is
very likely due to the fact that you have misspelled the form field
name.
The error is thrown when a cfquery is unable to find the form
variable.
The query looks, basically, like this:
<cfquery name="Iogin" datasource="dsn">
SELECT Count(*) AS Match
FROM Users
WHERE users.email = '#FORM.email#'
AND users.password = '#FORM.password#';
</cfquery>
I know I could squash these errors with a cfparam or with
other error checking, but what I’m really concerned about is
why the form variables aren’t there. I have tested the form
on a number of my internal clients and have not been able to
replicate the error as it is being triggered from outside clients.
I am able to submit a blank form or a complete form without any
errors being thrown. I have established that the form submissions
are coming from my site and are not being submitted by an outside
domain.
QUESTIONS:
1. Does anyone know what might be happening to cause the form
variable to disappear? Shouldn’t all the forms variables be
submitted when a user hits the submit button, regardless of whether
there is data in the form field?
2. Could a firewall on the clients’ end be withholding
the form variables without notifying the user?
3. Have there been any recent changes to browsers that could
be holding back form variables?
Any help would be greatly appreciated!@Azadi
quote:
from your posts it looks like this happens to different forms
in your application (you mentioned the email field and also a
select box, which is presumably in some other form)
I was able to resolve the problem with the second form (the
one with the select box, not the one posted above). A JavaScript
resided on that action page which triggers a service. The service
(similar to GoogleAds) receives the page’s url from the
JavaScript and then the service comes back and loads the page to
evaluate the page’s content. The result: Action pages being
loaded with no form content. My error reporting, very similar to
what insuractive suggested, helped solve this problem.
HOWEVER, we still periodically have trouble with the other
form. I know from speaking with at least two users that the problem
is a direct result of users following the planned application
flow—form to action page. So this discussion is still
relevant.
@insuractive
quote:
you should make sure you test to see what happens when the
client has javascript and/or cookies disabled on their browser.
This is a good thought. I’m embarrassed to say that I
haven’t tried accessing this form with cookies and JavaScript
turned off. I will try this and report back.
Thanks to all of you who are offering suggestions. -
Want to pass Applet form variables without showing it on URL Location
I am running one applet with some form variables. After submit I want to pass those to .asp file to store into database.
If I use URL method then all are getting displayed on URL location of browser which I do not want. I want to pass many form variables to another .asp file, so it may not be good also.
What is the best way of doing it ? Need urgent help about it.I tried following code using URL Connection Object, Code is running fine in IE and Appletviewer, but not running in Netscape.
Following is the code:
There is an applet with form. After Submit button, The form variables will be send to ASP script where I am storing it into database. In Netscape the server connection is made (blank record is getting created) but data is not passed.
public void actionPerformed(ActionEvent event) {
try{
ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512);
PrintWriter out = new PrintWriter(byteStream, true);
String postData = "firstName=manisha";
out.print(postData);
out.flush();
URL dataURL = new URL("http://manisha/appletexamples/confirm-px.asp");
URLConnection connection = dataURL.openConnection();
connection.setUseCaches(false);
connection.setDoOutput(true);
String lengthString = String.valueOf(byteStream.size());
connection.setRequestProperty ("Content-Length", lengthString);
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
byteStream.writeTo(connection.getOutputStream());
BufferedReader in =
new BufferedReader(new InputStreamReader(connection.getInputStream()));
String line;
while((line = in.readLine()) != null) {
System.out.println("line: " + line);
} //while
in.close();
} //try
catch(Exception e){}//catch
}//action performed
My ASP Code
<%
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open("DATABASE=phptestdb;DSN=phptestdsn")
%>
<HTML>
<HEAD>
<TITLE> A Sample Program </TITLE>
</HEAD>
<BODY>
<%DIM fname
fname = ""
fname = Request("firstName")
response.write ("fname : " & fname)
qrystr1 = "insert into applettesttable (fname) values ('" & fname & "')"
conn.Execute qrystr1
conn.Close
Set conn = Nothing
%>
</BODY>
</HTML>
Maybe you are looking for
-
Hello I purchased Photoshop CS2 in 2006. for Macintosh. Now I changed the Maverick version 10.9. But now I do not know where to download the same version, so I use bought in 2006 key. When pulled CS2 can not install it because my version is higher.
-
Why am I know having such difficulty streaming movies, it constantly stopping to upload,, pretty frustrating. There a also pop ups that have started to come up " Adobe Flash Settings "Some go away when I click deny, others I need to leave the site
-
How can I read in separate paramters from a cluster? (plz see the attached VI) It could be a simple problem, but I cannot figure this out. plz help! BR, Attachments: aggressor config read.vi 57 KB
-
Where is my music library in iTunes 11?
Just upgraded to iTunes 11. Music lib used to be on left side of screen w/ all individual playlists. Now it's gone. Only have playlists and purchases. Where is it and how do I put it back in that left side list w the others? Thanks!
-
BFD and Logic - new issue (I think!)
Logic 8.0 BFD v 2.0.3 Intel 10.5.7 w 4M RAM Fails to recognize audio unit. Ive tried opening standalone first, then logic. Same results. Also did the BFD set up, selecting Logic as the host app in the wizard. Ive seen some related posts, but nothing