• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

List displaying Value instead of Label

aijosh

Member
Hello,

I have a form (FORM A) which has a dropdown element that is generated using the Advance Eval populate PHP code. Value and Labels are taken from another table (LIST B) with it (id) set as the dropdown Value and (elementx) set as the dropdown Label.

ISSUE: When LIST A is viewed. Some of the rows show (id) of List B while other show (elementx)

How do I resolve this (id) is the value and not label. I need only the label (elementx) displayed throughout.

See screenshot
upload_2022-12-1_5-58-59.png
Thank you
 
Usually it's displaying the value if there's no label given.
I.e. in the database your row 3 has value 7 stored but your Advanced Eval populate doesn't contain a value 7/label something
 
Thanks for the response.

I'm 100% sure the database has labels for every value.

See screenshot of database table

upload_2022-12-2_6-1-39.png
 
And your Advanced Eval populate is loading all of them?

Yes.

Though I have it set to not show some time slots once more than 2 people have selected said meeting slot

upload_2022-12-5_11-28-38.png

As you see here, Sunday 9:00AM is not showing for this user because two people have already booked said time and I don't want it available for others to select any more.

PS: Apologies for delayed responses. I do not get notified when you reply so I don't know to check
 
As you see here, Sunday 9:00AM is not showing for this user because two people have already booked said time
Yes, and this is exactly what happens in list view: there are no labels for all records with a time already selected twice.
So modify your code to respect the view type or add a standard dbjoin element and show this in list view.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top