BookmarkSubscribeRSS Feed
Relax
Fluorite | Level 6

Hello All,

I'm super new to SAS Job Execution Web Application.  I have two HTML forms Form1 and Form2.  I would like to pass name users select from the drop-down list in Form1 to Form2.  I know that in regular HTML, I just need to put Form2 in Form1's action and use the method "get" to pass values.  But since in SAS Job Execution Web Application, action can only equal to /SASJobExecution/, so I have no idea how to resolve this issue.  In short, my question is how to pass values between HTML forms?

 

Here are my sample codes:

<!DOCTYPE html>
<body>
<form id="Check" action="/SASJobExecution/" target="Form1" method="get">
<input type="hidden" name="_program" value="/path/Check">
<input type="hidden" name="_action" value="wait">

<label>Name: </label>
<select id="name" name="name">
<option disabled selected value> -- select an option -- </option>
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
</select>
</form>
<br>
<form id="Update" action="/SASJobExecution/" target="Form2">
<input type="hidden" name="_program" value="/path/Updates">
<input type="hidden" name="_action" value="wait">

<label>Age: </label>
<input type="number" size="3" name="Age">
<input id="name" type="hidden" value="">
<input type="submit" value="Submit">
</form>
<div id="main_block">
<iframe id="Form1" name="Form1" style="border:none;" scrolling="no" width="100%" height="634" align="bottom"></iframe>
<iframe id="Form2" name="Form2" style="border:none;" scrolling="no" width="100%" height="634" align="bottom"></iframe>
</div>
</body>
</html>

 

Thanks in advance!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Discussion stats
  • 0 replies
  • 267 views
  • 0 likes
  • 1 in conversation