Editor with fields that don't get posted to DB
Editor with fields that don't get posted to DB
I have a form that gets its data from a database that I am not about to redesign and has tons of data from before.
The form has data from Canada and US. However no field in the database names Canada or US, it has only county names (from where you can infer what country it is).
When users create new entries for the db, they will select a county, and then go on with all the rest of the data.
I would like that, before having the choice of a county (in a select field) they get to chose in between Canada or US.
However, I cannot create a field in the form, because it does not exist in the database.
Is there a work around, or a method, to have a field where I can select country, but not send it to db when posting?
I can imagine more scenarios where that would be useful.
Replies
Indeed it is a useful feature, and it already exists . The
fields.submit
option can be used to stop a field from being included in the data set to the server.Regards,
Allan
Awesome. This is exactly what I was looking for. Thanks Allan.