You need to sign in to do that
Don't have an account?
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
<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>