As previously announced via banners and our newsletters, support is no longer available through this platform.

For easier navigation, you can still click on "Submit a Ticket" here, choose the appropriate category, and you'll be redirected to the correct support channel for your plugin.

You can still access your previous tickets and browse public tickets, but please note that responding to tickets is no longer possible.

Paid customers: Please log in to your store account for support.

Pre-purchase questions: Use the support widget in the bottom-right corner of our websites:
https://wpamelia.com
https://wpdatatables.com
https://wpreportbuilder.com

Okay
  Public Ticket #3157634
Hide empty values in dropdown
Closed

Comments

  •  1
    Kevin started the conversation

    Hi there!

    We've got a table that uses values from another wpDataTable:

    Table: Lookup: drs_member (id: 100), Show column: zwift_id, Value from column: drs_member_id

    We've set the editor input type to "Single-value Selectbox", so users can pick the ID from the list. 

    As we just started with these new tables, not all website users will have their zwift_id already filled in. This means that the Selectbox shows over 1400 empty values before listing the zwift_id's that are already filled in.

    Is there a way to hide these empty values, but allow the "Add an empty value to the list" to still work?

    Thank you in advance for your reply!

  •  1,896
    Miloš replied

    Hi, Kevin

    Apology for the late reply

    -

    I can see what you mean,  and I just made a test.

    Sorry to disappoint you, but currently it is not possible to remove the blank/empty values that are being pulled from the possible editing values of the foreign key column.

    This is a limitation for the columns that are foreign key relations.

    For them, we are unable to define to only load specific values for editing/filtering.

    -

    If we were able to do that, the solution would be to define values like this :

    4475682205.png

    Then the plugin would remove/ignore any other values, including blank ones,

    but for the foreign key columns, we currently don't have this possibility.

    We might work on somehow bypassing that limit in the future, but I can't say if and when that might be possible.

    Let me know if you have any questions. Thanks

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables