Jump to content

Storing the value from a value list .......


This topic is 7369 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Is it possible to store the selected value from a value list ? e.g.

<select name="subj1">

<option value="">Select Subject</option>

[FMP-ValueList: get_subject]

<option value="==[FMP-valuelistitem]">[FMP-valuelistitem]</option>

[/FMP-ValueList]

</select>

so that the value of "subj1" can be passed to 'subj2' in order to perform an 'or' search on subj1 & subj2.

Thanks drewc

Posted

I dont' see why not. In Lasso 7 it would be fairly easy

-OpBegin: And (Don't think thats the right format, but you get the point.

'subject1'=(Action_Param: 'valuelist'),

'subject2'=(Action_Param: 'valuelist'),

-OpEnd]

Something like that should work.

  • 3 weeks later...
Posted

You can use some Javascript to achieve this.

In the <head>:

<script>

function prepform()

{

document.theform.subj2.value = document.theform.subj1.value;

document.theform.submit();

};

</script>




And the Form should contain:


<form name="theform" action="FMPro" method="POST" onsubmit="prepform(); return false;">

......

<input type="hidden" name="-lop" value="or">

<input type="hidden" name="subj2 value="">

.......

All the best.

Garry

This topic is 7369 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.