134 Posts
root
7 years ago
6
Topic

Hi,

Does someone know what value the List Field returns when the list is empty (no results)? We need to display other field depending on if it's filled or empty, and I don't know which value could I use.

I tried with list_field "is Filled" and with is Equal/In " " but nothing. As this:

image

image

Simplifying, we need to make this two payment plug-ins working together:

Seblod List Field

Fields restriction

Any help will be much appreciatted.

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
5
Level 1

Hi,

I don't think List field returns any value, values can be passed from parent to child but not the other way around.

4229 Posts
Kadministrator
7 years ago
1
Level 2

Only workaround I can think of right now is to duplicate query created by your list using SQL restriction field

https://www.seblod.com/resources/extensions/plug-ins/sql-pack


134 Posts
root
7 years ago
0
Level 3

Ok Klas, thank you so much for your early reply. I'm quite desperate so I will try buying a third field for the same purpose, and using it as restriction like this:

If there is a related id, List Field will be hidden (Using reverse option)

And by the way:

If there isn't a related id, Form Field will be shown

Do you think is it possible?

Best regards

134 Posts
root
7 years ago
2
Level 2

Well, I tried adding the related id as the storage for the List Field, but it does not work... So I don't understand why List Field has storage options if it does not return any value :\

4229 Posts
Kadministrator
7 years ago
1
Level 3

List field only displays list, it does not store any values. My suggestion is to turn on debugging in list to see query produced and copy this query to the SQL restriction field.I'm not sure how related id fits into this.

134 Posts
root
7 years ago
0
Level 4

Yes, I'm not sure also, how it fits, but my tests have not been very successful.

I finally bought the sql pack and it's working perfectly for those needs I told.

Again, thank you very much for your help!

Get a VIP membership