You need to sign in to do that
Don't have an account?
Nishant Dubey 7
How can assign value to text field
Suppose two custom field Country(PickList) and State(Text). If in Picklist select U.S.A then state(text) field automatically assign value with "New York". But selecting any other country than U.S.A it should be blank
You will need to build custom code for this. There would be a select list, and on change of it, you would populate the value in the text box.
~S
Write a logic in your controller and assign value to State(text), display the same field in your page.
I believe setting the value through javascript would be much quicker and lighter than setting it in the controller.
~S
ISPICKVAL(BillingCountryCode, 'US')
, 'New York', '')