Expand my Community achievements bar.

Deleting a Date/Fields value

Avatar

Level 1

Hi I'm developing a XDP Form to be depolyed under XHTML, and I cannot find a way to clear a Date/Time Fields current value using Javascript.

I've tried fieldname.rawValue = "", fieldname.value = "", and fieldname.formattedValue = "", and = null for all properties mentioned. These do seem to visually remove the date's value (or put the string "null"), However when a server side script tries to read the value (should be empty) from the date/time field it still returns the original date value.

I've also tried combinations of xfa.host.resetData(), which only partially works if the date field had an original value of empty not if it was populated with a value, plus it seems to clear all the other fields on the form which is not desireable.

Is there any way to delete the Date/time fields value client side?

Any ideas would be greatly appreciated?

4 Replies

Avatar

Former Community Member

Works fine for me .....can you post your form and I will have a look?

Paul

Avatar

Level 1

Thanks for your prompt response.

I've attached my sample test which contains details of the problem, and how to reproduce.

Avatar

Former Community Member

No attachment appears on this end ....can you mail it to livecycle8@gmail.com

Thanks

Paul