Gebeer, thanks for the reply ! the problem is really obvious - I'm like 99.9% of non-professionals, who simply can not distinguish PHP from JS :)
I'm trying to understand a logic, is there any other way in Seblod? FOR EXAMPLE:
- create a content type form "add item" with an simple select field art_city which has last option "add own city" (storage standard->article->art_city)
- create separate content type form for example "add city" and place here only one input field art_usercity with AJAX validation plugin (check art_city)
- create a group field in the form "add item" and call the field from "add city" when user chooses option "add own city" (storage standard->article->art_city)
Will this work? I think no, because
user can't add an option into simple select from the frontend ? That's why I guess you proposed dynamic select.
But for dynamic select
we need a separate table in Joomla DB, where user can write own values/options. And later we would populate them.
More complicated, I think, is the situation with dynamic select cascade field!
Technically, i need something what let me write in DB a new city for specific region, what belongs to the specified country. Of course, I'm not talking about only country->region->city case, there're many other examples with 3,4,5... cascades. That's why I have an idea about separate field group (separate content type with a submission form). Obviously, user must stay on the same submission form page, without any redirect !
I guess, we can try to use the described above method:
- same story with two separate forms - create them
- user chooses country->region->city >>>> "add new" >>>> then a "conditional state" calls group field & form with (probably) the same cascade structure (???) and input field when "add new" is set during the latest stage
- we must be sure that user is going to write in the correct place in DB !! (so, parent_id must be set correctly...for example he wants to add missing city Billings in Montana<-USA but not in Texas<-USA...you understand what I mean). I don't see any option in Seblod which may help....except custom & safe JS.
That's why we need these paid plugins with "add new" feature "from the box", I want to pay for this, but not to have a headache - how to solve this.
If there is a way using existing plugins/fields, I'm kindly ask somebody who has experience to make a video tutorial / screenshots / manual which fields we need to use/buy and how to customize them in order to reach requested effect.