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
Luca Benedettini 7Luca 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?
deepak balur 19deepak 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.