function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RDN_LHRRDN_LHR 

Using HTML on Visualforce pages

Hi,

 

This is my first seriouis Visualforce page and I have what I think is a simple question.  This page takes user input for a custom controller and creates a new Case.

 

We've been using Case.CurrencyIsoCode in our Case Assignment rules for years.  For these particular cases, the user can have a say in how they are assigned. 

 

I could use <apex:inputField value="{!PSCase.CurrencyIsoCode}"/>

 

This would put the currency field out there and its picklist choices very nicely.  I think it would be more elegant to hide that and use something like:

 

<SELECT NAME="location" ID="R2CSI">

 <OPTION VALUE=" ">--None--

<OPTION VALUE="GBP">London

<OPTION VALUE="USD">New York 

<OPTION VALUE="AED">Dubai</OPTION>

 

... and then just be able to pass the selected picklist value off to ="{!PSCase.CurrencyIsoCode}"  easily enough by combining it with a visualforce page tag.

 

Am I far off the mark here?

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
TehNrdTehNrd
Or just use the visualforce selectOption components:

<apex:selectList value="{!PSCase.CurrencyIsoCode}">
<apex:selectOption itemValue="" itemLabel="--None--"/>
<apex:selectOption itemValue="GBP" itemLabel="London"/>
<apex:selectOption itemValue="USD" itemLabel="New York"/>
</apex:selectList>

 

Message Edited by TehNrd on 02-25-2009 08:50 AM