Load data from DB with user_id

Filter and sort database data in a ChronoForms dropdown.

Overview

The dropdown was displaying all database records instead of filtering by user and lacked proper sorting.
Configure the 'Read data' action by setting the 'Where conditions' to filter by the current user's ID and specify the 'Order by' field to sort alphabetically or numerically.

Answered
ChronoForms v6
Ma Maxvl 30 Jul, 2017
Hello!
Many thanks for CF6

The situation:
Use CF6. All data is output from the DB in Dropdown

The problem:
What do I need to specify so that the data in Dropdown is only for the user?
And what settings you need to specify the data to be in order (1-9, A-Z)?

Thanks for the help
Max
Ma Maxvl 31 Jul, 2017
Unfortunately it did not help
Max_admin Max_admin 02 Aug, 2017
Answer
2 Likes
Hi Max,

This has to be configured in the "Read data" action, in the "Where conditions" use:
field_name:{user:id}
in order to get records matching a specific user id, and in the order by use some field name: field_name/asc or field_name/desc

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.