I have a form with "Start Date" and "End Date" fields with the date picker calendar icons. The problem is that when I use hose fields as variable fields in any other forms and change the date fields to "read only," the date fields shrink in size and no longer display the full date (it gets cut off around the day like 05/18/) and I've tried to use CSS to expand them but because I have them in inline block it gets messed up.
What I did was add javascript:
$(document).ready(function(){
$('.date1 input').attr('readonly',true);
$('.date2 input').attr('readonly',true);
});
This changes it to read only on its own, even tho its not set to read only thru the settings in the layout and its looks great, then fields are wide like they should be. Only problem now is the minute you click on the calendar icon the field shrinks again.
how can i get these fields to stay in full wider form?
Thank You