cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How i show date picker if i am clicking on radio button?

SOLVED
122
Amethyst
Amethyst

How i show date picker if i am clicking on radio button?

want to change the field according to radio button , 1)If unlimited is checked then membership length field is hide and 2)if specific length is checked then membership length field show two field one for insert number and second for dropdown of day,week,monthand year and 3) If fixed date is checked then membership length field show date picker for start date and end date. please refer below attachment 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How i show date picker if i am clicking on radio button?

@122 

 

To show/hide the date picker based on the selection of a radio button you can bind the state property of the radio button to the visible property of datetime picker

 

cmorfin_0-1594632464279.png

Hope this helps

Regards

Christophe

 

View solution in original post

2 REPLIES 2

Re: How i show date picker if i am clicking on radio button?

@122 

 

To show/hide the date picker based on the selection of a radio button you can bind the state property of the radio button to the visible property of datetime picker

 

cmorfin_0-1594632464279.png

Hope this helps

Regards

Christophe

 

View solution in original post

Re: How i show date picker if i am clicking on radio button?

You could do this by binding the State property of radio buttons to the Visible property of Date Time Picker & Numeric Entry widgets. In your case, use 3 Date Time Picker & 1 Numeric Entry widgets.

 

  1. Uncheck all 4 widget's Visible property so that when Unlimited is chosen none of them is visible
  2. Bind Specific Length radio button's State to the 1st Date Time Picker & Numeric Entry widgets' Visible property so that only 1 DateTimePicker & the Numeric Entry widget is visible 
  3. Bind Fixed Date radio button's State property to the visible property of the remaining 2 date time pickers, so that only they are visible when this option is selected

You could use an expression function if you prefer to achieve this using 2 Date Time Pickers.

 

Announcements

Check out the upcoming Expert Session: Understanding ThingWorx Navigate Licensing in Community "Customer Events" section.