You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In new Fulfillment handler feature we are using ConfigArgs to define fields. However some fields we want to set by default to some value (e.g. we want to set pickup date to null - currently datetime picker automatically sets "now"), we want to be able to set value of checkbox, as well as we want to be able to have field not mandatory (e.g. manual fulfillment handler now requires filling both input fields before we are allowed to submit fulfillment form).
Describe the solution you'd like
Extend ConfigArgs with properties that would allow similiar functionality as CustomFields:
required: boolean
nullable: boolean
defaultValue: null | based on type of the field
Additionally set fields of manual fulfillment handler to requred: false, so it's possible to fulfill an order without tracking code.
Additionally currently I use boolean in ConfigArgs. In the form by default the input is checked (though there is no "default" set - so should be unchecked?), however the submit button is disabled, I have to uncheck and check it again to be able to submit the form (maybe the form validation is not run by this time, or is not possible to submit pristine form?)
Additional context
v0.18.1
The text was updated successfully, but these errors were encountered:
@michaelbromley You are right.
I guess I mixed my thoughts with "undefined vs null" as JavaScript perceives it, but in this case we do not need undefined state, that would be "null". Therefore just either required or nullable is needed.
Is your feature request related to a problem? Please describe.
In new Fulfillment handler feature we are using ConfigArgs to define fields. However some fields we want to set by default to some value (e.g. we want to set pickup date to null - currently datetime picker automatically sets "now"), we want to be able to set value of checkbox, as well as we want to be able to have field not mandatory (e.g. manual fulfillment handler now requires filling both input fields before we are allowed to submit fulfillment form).
Describe the solution you'd like
Extend ConfigArgs with properties that would allow similiar functionality as CustomFields:
Additionally set fields of manual fulfillment handler to requred: false, so it's possible to fulfill an order without tracking code.
Additionally currently I use boolean in ConfigArgs. In the form by default the input is checked (though there is no "default" set - so should be unchecked?), however the submit button is disabled, I have to uncheck and check it again to be able to submit the form (maybe the form validation is not run by this time, or is not possible to submit pristine form?)
Additional context
v0.18.1
The text was updated successfully, but these errors were encountered: