You need to sign in to do that
Don't have an account?
Jugbeer Bhola
Visualfore Remoting - Picklist definition and retrieval
I see examples of manipulating picklist with visualforce tags everywhere. That is not what is necessary. Does anyone know how to define a pure HTML picklist on a visualforce page with no <apex:/> tags? The task is to use "remoting" which is a new concept to me. I know how to call functions in a controller like this:
Do I need to wrap these methods in something or create them solely in HTML for Javascript to access. Any advice from the experts out there would be appreciated.
//Salutation Picklist public void CollectSalutation () { Schema.DescribeFieldResult salutationFieldDescription = Contact.Salutation.getDescribe(); SalutationOptions = new list<SelectOption>(); for (Schema.Picklistentry picklistEntry : salutationFieldDescription.getPicklistValues()) { SalutationOptions.add(new SelectOption(pickListEntry.getValue(),pickListEntry.getLabel())); } }acct.PickListNames__c = document.getElementById('picklistNames').value;
Do I need to wrap these methods in something or create them solely in HTML for Javascript to access. Any advice from the experts out there would be appreciated.
With out remoting you can do like this easly
Controller code page code