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
mentulamentula 

radio button with textbox

Hi Salesforce folks

 

Please help me with Radio buttons with dateTime textBox  any kind of help is much appreciated .

 

 

 

thanks in advance

 

AdrianCCAdrianCC

Hello,

 

Why aren't you using the default salesforce datepicker(apex:inputField for a DateTime field)? Do you really need to have AM/PM separated?

 

Thanks,
Adrian

SabrentSabrent

yeh, as @AdrianCC suggests, why not use a DateTime field.

mentulamentula
Thanks Adrian for replay me... AM/PM is not needed but radio button beside datepicker is needed...I am unable to place date picker beside the radio button. when user selecting radio button only it allow the user to enter a value for datepicker .... that AM/PM functionality there in existing in application we need to develop same functionality ..... thanks in advance
AdrianCCAdrianCC

Oh, sorry... 

 

You were asking about the page layout.

Well, there are a few ways to doing it. You can use an apex:pageBlockSection with columns=2. Or use 2 <td> inside the same  <tr>...

Can you post the code for the page as it is atm?

 

Thanks,

Adi