4
Right now there is not a way that values can be set with default values on an MPOS form. For instance, the first name, last name, and customer group are required fields on the 'new customer' form. It would be great if there was a way to set these values to a 'default' value through code, so that the customer creation process could be done faster. Right now we do not have access to setting the values on these controls.
STATUS DETAILS
Declined
Ideas Administrator

Thank you for sharing your idea with us. We appreciate and value your input. While we have decided not to pursue it at this time, we will keep it on our radar and re-evaluate it in the future if there is increased demand from our customers.

Comments

P

Hi Peter,

It is possible to set the default values via POS extension:
1) Create custom control for 'Customer add/edit' view
2) This control can have completely empty HTML design - so it will not influence on customer form design
3) Inside control typescript class (that handles business logic, inherited from CustomerAddEditCustomControlBase), - add logic to set default values to Customer object (for example, in onReady method)

Regarding customer group: it should be taken from default store customer by standard, so you can use this customer settings to populate it.

Category: Extensibility and Developer experience