Retailer Id Component
UI Component
Changed on:
6 June 2024
Overview
Retailer Id (fc.attribute.retailerId) Component is a custom field component that allows to add/edit a Retailer on a drawer.| Plugin Name | OMS |
|---|
Alias
fc.attribute.retailerId
Detailed technical description
The component’s key feature is the possibility to add a Retailer Id only in situations when it is necessary. Let’s consider the following situations when a user is created:
Validation: there is no validation (for Primary Retailer) from the backend perspective when we click on the drawer's SUBMIT button.
b. when the retailer’s list contains more than three values
Validation: When a user clicks on the drawer’s SUBMIT button, the field with the Retailer Id parameter will be validated as well as other fields (it is impossible to send an empty value).
- When a new user with user type “RETAILER” is created, the Retailer Id is a required parameter;
- When a user with another type is created, the Retailer Id is an optional parameter.
- default state when + ADD RETAILER button is not pressed on
Validation: there is no validation (for Primary Retailer) from the backend perspective when we click on the drawer's SUBMIT button.- + ADD RETAILER button is pressed on
b. when the retailer’s list contains more than three values
Validation: When a user clicks on the drawer’s SUBMIT button, the field with the Retailer Id parameter will be validated as well as other fields (it is impossible to send an empty value).Properties
N/A
Configuration example
1{
2 "overrides": {
3 "primaryRetailer": {
4 "component":"fc.attribute.retailerId"
5 }
6 }
7}Version History
Recommended Placement
N/A


