PDA

View Full Version : Prevent Form Fields from being posted



EasyEl
11 Sep 2008, 1:23 AM
Hi there.

Is possible to prevent Form fields from being posted? I am not looking for disabled Fields but would rather like to have input fields (which in turn fill hidden fields and initiate claculations) that take in user data but are ignored during the actual POST.

Thanks,
El

evant
11 Sep 2008, 1:29 AM
Probably not without overriding some methods.

Why not disable the fields just before submitting?

EasyEl
11 Sep 2008, 1:38 AM
I was thinking about doing just that in the beforeAction method. I just wanted to make sure that there is no "standard way" of doing things.

Thank you for you speedy reply :):):)
El

Animal
11 Sep 2008, 2:06 AM
Input elements with no name attribute are not submitted.

EasyEl
11 Sep 2008, 2:18 AM
Interesting! This might be an even better approach. Thank you! :)