Conditional Field

Erstellt von Igor Galic, Geändert am Wed, 03 Aug 2022 um 12:58 PM von Igor Galic

Conditional Field is a field that you can use if some kind of main value is missing but you have another value that can be used to map that field, let us give you an example.


Dokan to Shopify


If you want to transfer 3 Products and 2 of those 3 products have SKU , but only one has Product ID. In this case you use Conditional Field to transfer all 3 of the productsLet us elaborate on this.


Usually SKU is a requirement for Product transfer, so it will be marked with a small orange dot meaning that field is "Required" to be mapped so the task can work correctly, it looks something like this.


To create and set a Conditional Field. We can do this by going to the mapping section, and on the bottom left corner click on the "+" sign then click on Conditional Field.


Here are the options for Conditional Field 


Name  - Name of the field


Match By - Matching by the field you are trying to set the Condition ( Rule) for that specific field.


Choose Condition - Is set, Is not set, Equals, Not Equals, In a Sequence, Not In a Sequence and Like


Enter Value - Set the value of the field ( in this usecase we will not be using this setting)


Set output value field or constant value if rules are met - Example for this usecase ( if The matching field is SKU, and is "Not Set" then we will use Product ID field as the field for that specific Product


Otherwise - A field that we use in case the Set output value field has no value

With the explanation from above, this is how we mapped the Conditional Field,


Name it as you wish. Match it by SKU as a main Value, we added condition "Is not set" so if it is not set then we will use the Product ID as the output Value ( meaning if SKU is missing we use the Product ID) and if Product ID is missing, we use SKU for the "Otherwise" field. 


After we have mapped everything. Click on Done, and simply connect the Conditional field with the "SKU" Field.


That is all for the Conditional Field.

War dieser Artikel hilfreich?

Das ist großartig!

Vielen Dank für Ihr Feedback

Leider konnten wir nicht helfen

Vielen Dank für Ihr Feedback

Lassen Sie uns wissen, wie wir diesen Artikel verbessern können!

Wählen Sie wenigstens einen der Gründe aus

Feedback gesendet

Wir wissen Ihre Bemühungen zu schätzen und werden versuchen, den Artikel zu korrigieren