How to change the description default value based on the category selected?

Hey guys,

I am trying to change the default value of the description field based on the category id (Action: Listing Submit).

I have found following starting point, however I always get a critical issue when trying to access the model as the listing is not created at this point (most likely?). How can I modify the code to get the category ids of submit listing form so we I can use it later on to modify the values.


This snippet looks good, but you need to modify it by adding the condition that the model is not null; the submit form already has a listing. Also, when checking categories, try just adding the default value.

​I hope this is helpful to you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.