1 Reply Latest reply: May 7, 2013 9:53 AM by aksarben RSS

    coding issue

    905946
      Hi,

      i need to achieve following functionality

      I have a dropdaown button with value regular and control and a input text field userDate

      case 1:

      when at 1st user select the regular as a type from dropdown then a userDate is set to some default value and if user select control as type from database then some default date should be set

      but if user want to enter new date instead of default date he can enter

      now the problem is
      i login to application
      i as user select type regular default date is appear, i change this date and submit
      again i select type controlar default date is appear, i change this date and submit
      but if i again select type as regular i want userDate is set to default one
      but it shows me change value


      can any one have any how i can reset the default date for regular type when i actually select controlar type from dropdown and vice versa


      plz help me with this