Announcement

Collapse
No announcement yet.

automatic current date filled when another field is changed

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • automatic current date filled when another field is changed

    i'm new with scriptcase and i have a field that has 2 radio button choices, and another date field, i want that date field to be filled automatically when the user make the choice on the radio button field, i tried it with an ajax event, onchange of that radio button to fill with an sql query but it didn't work, is it possible to fill the date automatically ?

  • #2
    In the case of radio button you have to use the onclick event instead of the onchange.

    Regards.

    Comment


    • #3
      it worked, but i was hoping to see the change onclick, but i have to go to another record then go back to that record to see the change, anyway thank you Kafecadm !

      Comment


      • #4
        Originally posted by Abi azmah View Post
        it worked, but i was hoping to see the change onclick, but i have to go to another record then go back to that record to see the change, anyway thank you Kafecadm !
        Hello man:

        This is weird:

        If you use an ajax event with a code like
        PHP Code:
        {myfield} = date(); 
        It should show the change immediately... could you please share your code with me?.

        Regards

        Comment


        • #5
          hello, i'm actually a woman , and the mistake i did was putting an sql update query before the php code : {date_s2}= date("Y-m-d"); so now it's fixed and worked perfect, thank you for your reply

          Comment


          • #6
            woopsy daisy.... =P

            Comment

            Working...
            X