How to create a Activity event(Sobject) vf page without the duration and time field. Because these fields are required one i don't need these on my page.so can we do it without these fields. If so can anyone provide me with some sample.
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
A Salesforce Event happens at a particular time and date, and has a duration in minutes. If you set the Start Datetime and Duration, the End Datetime will be filled in, and if you set Start and End, Duration will be filled in. However, you can't create an Event without specifying this information in some way. If you don't want to display it on the page, you could write a custom controller extension that sets these values "behind the scenes".
However, I don't understand why you would create an Event that doesn't happen at a particular time, so it may be that I'm missing something.