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
beener3beener3 

Date Field without object

Hi,


I'm attempting to place to date fields (for input - with the calendar control) on a visualforce page. these are not attached to any object.

since InputField can only be used togather with an Object, I had to artificially use an object' date field. even though I'm not concerned with that object in this context.

 

Ideally, the input field would simply be tied to a date variable.

 

any ideas?

 

Thanks.

 

aalbertaalbert
It sounds like you already are doing this, but I have used a different Object and bind a date field from that object to the InputField. For example, the Opportunity CloseDate field - even though my solution has nothing to do with the Opportunity object. That way you can use the calendar control in the Page, and have access to that entered value in your controller.