We have a product layout that needs a custom datepicker field. In order for the date field to show up in the order information we are trying to set it’s value to a custom product text field that will be hidden.
Getting the selector and value of the Datepicker on change is working great but now I need a way to set the product text field to the selected value. I can’t find a way to select the custom text field to set its’ value. With jQuery it would just be $(“#fieldContainerID textarea”).value(datepickervalue); but I can’t seem to figure out the selector and how to set the value using the wix $w library.
How about something like this:
$w("#textField").text = datepickervalue;
See the Text API docs for more information.
Thanks for the response Yisreal. The problem I am having is finding the selector for one of the two allowable custom product fields added through the wix product dashboard.
@spencer I think I (finally) understand what fields you are referring to. Access to the fields in the Product page is not currently supported. You’ll have to find some other way to create the text for the custom fields.
Hi, I am looking for a solution to the same problem. Did you figure anything out yet?
Did you find a solution to this? I have exactly the same problem…