You need to sign in to do that
Don't have an account?
Luca Benedettini 7
Get value in a visual force page
Hi,
I create a custom visualforce page where user inserts one value (i.e. Indirizzo__c). Now I want to add a custom button that create an Event (Salesforce standard Object) and fills one field, inside the Event, with the value inserted by the user.
Now I'm using this code:
<apex:commandButton value="new Event" onclick="window.location='/00U/e?Indirizzo__c={!$CurrentPage.parameters.Event.Indirizzo__c}&nooverride=1'; return false;"/>
but it doesn't work, because Indirizzo__c is null instead have the value inserted by the user.
How can i do that?
I create a custom visualforce page where user inserts one value (i.e. Indirizzo__c). Now I want to add a custom button that create an Event (Salesforce standard Object) and fills one field, inside the Event, with the value inserted by the user.
Now I'm using this code:
<apex:commandButton value="new Event" onclick="window.location='/00U/e?Indirizzo__c={!$CurrentPage.parameters.Event.Indirizzo__c}&nooverride=1'; return false;"/>
but it doesn't work, because Indirizzo__c is null instead have the value inserted by the user.
How can i do that?
deepak balur 19
Action method of your New Event is where you need to create the Event. Your controller does not have the values that the user inserted because there's no method.