I am attempting to query my database and am getting an error with one of the three query parameters. For reference, I am able to successfully get the year and make portions of the query to populate but the results for the model portion shows in the console as modelformat=json instead of just stating the model (tacomaformat=json instead of just tacoma).
Any and all advice is greatly appreciated.
@Yisrael (Wix) Thank you for your response. A few weeks ago, this worked flawlessly. I'm not sure of what happened but I am very eager to get my clients site back up ASAP.
The database consists of a reference field (field key is title) which connects to a store product. The fields being queried in this database are year, make and model. The goal is to pull the reference field from the database based on the year, make and model that the user inputs.
{ "Value": "Tacoma", "ValueId": "2223", "Variable": "Model", "VariableId": 28 } When I query the database I am getting Tacomaformat=json instead of the above Value. I am also getting this error code: Cannot read property 'title' of undefined. Please see my page code below.
Most likely, the model field in the returned object, is itself a JSON object.
The attached file is not clear at all. (Please don't attach files, they are inconvenient to work with) You need to provide more information. What does the database collection look like? What fields do you have and what are their types? Please post your code here, nicely formatted, in a code block. Explain what you are doing, what works, and what doesn't.