We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
...
Want to use App Bridge UI Resource Picker with useField().
I am trying to use the Resource Picker (which opens via button click) to obtain a product ID.
I'd then like the value to be set against a form input.
Setting configuration.objectRequired.value does not store the state.
configuration.objectRequired.value
const { fields: { discountTitle, ... configuration }, submit, } = useForm({ fields: { discountTitle: useField(''), ... configuration: { objectType: useField(''), objectRequired: useField(''), gwpProduct: useField(''), } }, onSubmit: async (form) => { const discount = { title: form.discountTitle, ... configuration: { objectType: configuration.objectType, objectRequired: configuration.objectRequired, gwpProduct: configuration.gwpProduct, }, }; submitForm({ discount: JSON.stringify(discount) }, { method: "post" }); return { status: "success" }; }, });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Overview
...
Motivation
Want to use App Bridge UI Resource Picker with useField().
I am trying to use the Resource Picker (which opens via button click) to obtain a product ID.
I'd then like the value to be set against a form input.
Setting
configuration.objectRequired.value
does not store the state.The text was updated successfully, but these errors were encountered: