Skip Navigation

[Resolved] Cred form managing localisation list

This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 16 replies, has 2 voices.

Last updated by magdalenaT 6 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#914943

Tell us what you are trying to do?

I need to allow users after registration to choose theirs localisation, my website is polish only so i have created polish voivodeships as parent taxonomie and every of those have own cities as child taxonomies.

But there is a problem its almost 1000 positions now so its too big.

I have some wheree. Nice solution ant that solution i want to achieve.

On my website i haave new visitor a photographer
So he wants to register account.

After that he goes to his account and he can create his own ad.

He opens ad creation CRED form and inserts his informations.
So far so good almost everythings works

But he need to choose his localisation, and here is problem.
I dont want him to open select field search over 2000 cities to find his so i would like to do it like this:

He open select but only with voivodeships and after he choose his then next select shows up with cities of this voivodeship so he can choose from about 100_150 cities.
Greate thing would be also that this wount be select field but text field with auto complete if it is possible. But if not i will be glad to have this first one solutiion.

Additional questions:
Does subscriber can upload files i set this forms as supscriber and uploading didnt worked. Worked after changing to editor
Maybe i should create and set my own groups ?

Is there any opssibility tu allow users tu upload their photos in bulk ? This site is for photographers and i think they will be uploading many photos to theirs galleries. Uploadin one by one will kill them.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#915149

Hello,

Q1) Greate thing would be also that this wount be select field but text field with auto complete if it is possible. But if not i will be glad to have this first one solutiion.
I suggest you replace it with custom address field of Toolset map plugin, see our document:
https://toolset.com/documentation/user-guides/display-on-google-maps/

When user input values in the custom address field, there will be a auto suggestion

Q2) Does subscriber can upload files i set this forms as supscriber and uploading didnt worked. Worked after changing to editor

Please try to add capabilities "upload_files" to user role "Subscriber", for example:
1) install Toolset Access plugin
https://toolset.com/account/downloads/
2) Dashboard-> Toolset-> Access Control-> Custom Roles
Enable Advanced mode, click link of "Change permissions " for "Subscriber", enable option "upload_files"
More help:
https://toolset.com/documentation/user-guides/managing-wordpress-admin-capabilities-access/

Q3) Is there any opssibility tu allow users tu upload their photos in bulk ?
I assume you are going to upload a local folder, if it is, not there isnt' such a feature within Toolset forms or other Toolset plugins.

#915168

DONE.

But I need docs how can i modify this field to my needs

#915169

Adress field is saved as: Warsaw, Poland.

Is there possibility to save it as Warsaw, Mazowieckie, Poland ?

And make a taksonomy from it ?
so it can be used like that:

hidden link

hidden link

And also i would like to limit this to Polish adresses if it is possible

#915220

I Played with google maps and i will leave it on my site.

BUT

Voivodeships and cities ar my categories and i dot think google maps address will work here good.

I think i still need somehow to display my parent - child taxonomy in two select fields
first parent only witch viovodeships
second should apear after choosing parent - and have only cities that belongs to chosen parent category (taxonomy)

#915247

OK, i think i Can use post relationships for that:

What i have fade for now

Created:
- custom post type: Firmy (my businesses - ads)
- custom post type: wojewodztwa (voivodenships)
- custom post type: Miasta (cities)

Now i have created following relationships:

Województwa [0 .. 1] << Miasta [*]

Miasta [*] << miasta firmy >> Firmy [*]

But i cant see relationships in cred forms - there is something i must be missing

I was trying to get it from this demo:

hidden link

Here is auto search field that works (second from bottom) and i see that it will be for me ideal.

Please help me make it working

#915557

Please elaborate the question with more details:
But i cant see relationships in cred forms - there is something i must be missing
Which relationships do you want to see in the CRED form?
Please provide the credentials of your test site in below private message box:
hidden link

#915616
relationship-tab.JPG

Thanks for the details, for example the one-to-many relationship "Lokalizacje" between post type "Województwa" and "Miasta", you can see "relationship" tab only when you create/edit the child "Miasta" post, I have setup a demo form in your website:
hidden link

see screenshot relationship-tab.JPG

#915636

OK, but i think i need to create relation like this

Miasta << >>Firmy

In on city(Miasta) i can have many businesses (Firmy), this businesses can be in many cities so i asume that i need here many-to-many relation

thats why i set up this:

Miasta [*] << miasta firmy >> Firmy [*]

So my question is how to step by step setup Miasta - Firmy relation so in Firmy edit/create form i could see relationships ?

#915752

For many-to-many relationship, please try with Relationship Forms, see our document:
https://toolset.com/documentation/post-relationships/how-to-build-front-end-forms-for-connecting-posts/

See live demo in your website:
hidden link

#915790

Please request private fields.

A will give you access to demo site

I dont know if we understand each other.

On my website this is form i use for adding business - photographers (Firmy)

hidden link

and here i want to add possibility to asign cities (busines must be assigned to on city or more).
I only need one selest field - witch possibility of selecting City.

I can see that this is possible on my demo
hidden link

this is your default demo.

i only added

[cred_field field='@city_apartment.parent' select_text='--- not set ---' class='form-control' output='bootstrap']
and i cane choose which city assign.

The same thing i want do do on my site.

#915867

OK, i Found thing that i need.

Its not a toolset functionality or something like that

This is select field witch js select2 ?

Can you tell me how on my demo it was installed to work with FORM CRED ?

Here is this search function that i wanted all the time 😀

hidden link

#915932

Is it possible to use select 2 with this field ?

[cred_field field='fotograf-slubny' display='select' output='bootstrap' select_text='--- not set ---' single_select='true']

#916110

Q1) Is it possible to use select 2 with this field ?
[cred_field field='fotograf-slubny' display='select' output='bootstrap' select_text='--- not set ---' single_select='true']

"fotograf-slubny" is a custom select field, there isn't "select2" feature within custom select field,

Q2) Its not a toolset functionality or something like that
This is select field witch js select2 ? ... hidden link

It needs custom codes, I have setup a demo in your website, with below steps:
1) Edit the Toolset form "dodaj wizytówke - fotograf":
hidden link
in section "Content" add below codes:

<link href="<em><u>hidden link</u></em>" rel="stylesheet" />
<script src="<em><u>hidden link</u></em>"></script>

More help:
hidden link

2) Click "JS Editor", add below codes:

jQuery(document).ready(function() {
    jQuery("select[name='fotograf-slubny[]']").select2();
});

The "fotograf-slubny[]" is your custom select field HTML name attribute.

More help:
hidden link

Then test it in front-end, for example:
hidden link

It is only an example, you will need to customize it to what you want according to the document of select2

#916113

Your great !!!

And these are best tools for WP i have ever used.

This works like charm and that is what i needed

Last thing that i need is to dosable parent - but i think i'he seen it on support forum