This topic is locked
[SOLVED]

Reload dependednt dropdown

9/4/2025 3:17:44 PM
PHPRunner General questions
D
digital ant author

Running v11.1

Using this guide from the PHP Runner tips and tricks:

https://asprunner.com/forums/topic/22826-how-to-update-details-table-while-editing-master-record

To update a dropdown field. The process works.

This same detailspage has another dropdown field that is a dependent on the field being updated by the javascrip above.

I have tried watching the field update from the details page by adding various jquery event triggers in the details page, add page events (like change, blur, keyup, etc), but none of them work.

I've seen a few people with the same question, has anyone found a way to refresh or reload a depended drop down using this master/detail field update process?

D
digital ant author 9/4/2025

Please delete this duplicate. the original post gave me a server error, i didn't realize it still created it

Sergey Kornilov admin 9/4/2025

Check this article:
https://asprunner.com/forums/topic/31193-How-to-implement-a-custom-dependent-dropdown-box

Besides other things it explains how to reload the dependent dropdown box from your code.

D
digital ant author 9/5/2025

I have implemented the field actions, and the dependent dropdown does refresh but only when editing on the detail record.

here is what I have:

img alt

This is an Add New pop-up form, therefore there is no master record to query. The master has many fields, I am focusing on the last one, Topic Category.
The details table is the Referenced Products table below.
When the user is adding a new complaint, I want them to fill out the form, choose a Topic Category and then choose products from the details table that are from that category.

I will hide the Topic Category field on the details table once I get this working.

Because the the master record is being created and there is nothing to query or pass in a session variable yet, I have followed this guide:
https://asprunner.com/forums/topic/22826-how-to-update-details-table-while-editing-master-record
to ensure that when I choose a topic category on the Add New Master form, it updates the Topic Catgory on the details table. This works.

I created dependent drop downs on the details table, but they do not see the "change" event to trigger a field reload

The code in the article here:
https://asprunner.com/forums/topic/31193-How-to-implement-a-custom-dependent-dropdown-box
works, but it is the same issue: The Topic Category field on the details table does not experience a "change".
If I click and choose a category in the details table, it works fine, but I would like to hide this field.

I hope that makes sense.

D
digital ant author 9/5/2025

Sergey, as soon as I posted the last reply, I realized the method in your last link would work across master/detail. I added it to the detail page category field and it was still not working.

I moved the field events to the category field on the master page and the dependent field is working now! Thank you for the link! On to the next challenge of setting the default for all subsequent adds!