Page 1 of 1

Public forms

Posted: 11 Nov 2019, 15:57
by kubera
Hi
There is an issue with Public forms.
I`ve got Entity 'KOP' with two subentities 'Ankieta' and 'Jednostki'. In 'Ankieta' there is a field 'Jednostka' (entity type) where selected entity is 'Jednostki'.
I`ve added 2 records to 'KOP' and added different items to 'Jednostki' in every of 'KOP`s' record.
When I`m adding new record in 'Ankieta' then field is filled with items of current KOP->Jednostki. It`s OK.
Then I`ve created Public Form where I`ve set entity to 'Ankieta' and choose one of records of 'KOP'.
In Public Form the list of 'Jednostka' is filled with all items from 'Jednostki' instead of the choosen one.

I tried also other entity types for 'Jednostka' but without success.

Re: Public forms

Posted: 11 Nov 2019, 17:32
by support
Sorry, not clear what do you mean.

Re: Public forms

Posted: 11 Nov 2019, 18:02
by kubera
General structure
1_structure_1.png
Fields of entity 'Ankieta'
2_ankieta.png
3_ankieta_2.png
Records of 'KOP'
4_kop_all.png
4_kop_all.png (6.95 KiB) Viewed 2810 times
Records of subentity 'Jednostka'
5_kop_ser_jedn.png
6_kop_ubs_jedn.png
Adding to 'Ankieta' entity
7_kop_add.png
Public form structure
7_public_form_structure.png
Entity combobox is filled with all records from 'Jednostki' of 'SER_W1' and 'UBS_W1' instead onlny from 'SER_W1'
8_public_form.png

Re: Public forms

Posted: 11 Nov 2019, 18:49
by support
When you logged you have select parent first and that is why entity dropdown depend with selected parent.

In public forms there is no parent record selected and that is why you see all items.

Re: Public forms

Posted: 11 Nov 2019, 19:30
by kubera
But in structure of public form I choose SER_W1 as parent record. :?

Re: Public forms

Posted: 11 Nov 2019, 19:35
by support
Ok, I see. Added plan to fix. I will let you know.

Re: Public forms

Posted: 15 Nov 2019, 00:58
by kubera
Any chance for this fix in ver 2.6? Or maybe earlier?

Re: Public forms

Posted: 15 Nov 2019, 07:55
by support
Yes, it's in plan for 2.6

Re: Public forms

Posted: 13 Dec 2019, 13:08
by support
Fixed for 2.6
If you set Parent and hide it in public form then parent ID will be using in Entity field to filter values.

Re: Public forms

Posted: 13 Dec 2019, 15:03
by kubera
Can`t wait :D