Reaload Form

Hi, this is the question
Can i reload a form when a date field was changed??
Thanks

Re: Reaload Form

Create an AJAX event on the date field then enter in the code for the field(s) you want to change.

The form should reload to update changes.

Regards,
Scott.

Re: Reaload Form

Just remembered, you can also select the field and select Ajax Processing on the right and check Use Ajax …

If you want to change values in other fields, then add code as I mentioned above.

Regards,
Scott.

Re: Reaload Form

Thanks a lot for answer.
I need to fill a select field with a grid lookup when date field change, the grid lookup use the value of date field for filter.
pd: i don’t see ajax processing on the right in my date field.

Re: Reaload Form

My fault. It seems AJAX processing is only available on List Data Types (Select, Radio).

You may have to just use the approach I first mentioned (AJAX event). If this does not work, then let me know.

I have the same scenario,

I have field date says {BIRTH_DATE}, then I have select field {TOYS}.
In Select field {TOYS} I have where clause and filter based on Year({BIRTH_DATE}).

How will Ajax events handle this (reload {BRITH_DATE}), while filed {BIRTH_DATE} has no Ajax activation (Only Select, Check… Has !)

[QUOTE=lpangemanan;40723]I have the same scenario,

I have field date says {BIRTH_DATE}, then I have select field {TOYS}.
In Select field {TOYS} I have where clause and filter based on Year({BIRTH_DATE}).

How will Ajax events handle this (reload {BRITH_DATE}), while filed {BIRTH_DATE} has no Ajax activation (Only Select, Check… Has !)[/QUOTE]

If you don’t have a trigger on birth_date then nothing will happen if you change the field obviously. So you need to apply an (ajax) event to this. Depending on the fieldtype you can trigger a lookup automatically, i.e. if you change a listbox then automatically another listbox will be populated by a query using the first field or use a onchange or onblur (if you don’t want an even on each and every key the user types, but the event will fire after leaving the field) and write you program around that.

Thanks for your direction, Could you please advice how can I create ajax event for date field, and what the code inside would like be to reload other fields ?

Otherwise how will you trick the date field, so when it change it will reload other select type fields.

Dunke !

See other posts. Please, do not double post.