Knockout bind optional fields

Viewed 579

I'm trying to bind a JSON containing optional fields using knockout js. The problem is I keep getting this error:

Unable to process binding "value: function..."

And I can't add the missing fields as I need them to remain missing (the missing fields are taken from a "parent" JSON)

Is there any option to tell knockout js to ignore those fields and only add them if a user types anything in the field?

4 Answers
Related