Skip to content

Conversation

@atownson
Copy link
Contributor

Closes: #17944

Added the advanced object selection widget to the ObjectVar and MultiObjectVar script inputs. To render the selector button set selector = True on the input. The modals block was added to the script template to pass the size='lg' parameter. Without it the modal was rendering thinner than normal.

I discovered an issue where the query_params defined for the input are not passed to the advanced object selector widget. I plan to open a separate bug issue for this.

@atownson
Copy link
Contributor Author

FYI, I referenced the associated issue for the PR in a new bug issue: #18727

@jnovinger jnovinger requested review from a team and jnovinger and removed request for a team February 27, 2025 21:48
Copy link
Member

@jnovinger jnovinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks and feels solid. Thanks @atownson .

@jeremystretch jeremystretch merged commit 3e1d436 into netbox-community:main Mar 3, 2025
3 checks passed
bctiemann pushed a commit that referenced this pull request Mar 6, 2025
… inputs (#18725)

* Add the advanced object selector to the ObjectVar and MultiObjectVar script inputs

* Fix formatting issue
@atownson atownson deleted the issue_17944 branch March 31, 2025 13:20
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow filtering of ObjectVar and MultiObjectVar input selections for scripts

3 participants