03-16-2022 04:14 AM
I'd like to have a couple of widgets, one for the start and another for end date. I want them to appear in that order but when I run the code below, end date shows up before the start date. How can order in the way I I desired?
dbutils.widgets.text("start_date", "yyyy-mm-dd", "start_date")
dbutils.widgets.text("end_date", "yyyy-mm-dd", "end_date")
03-16-2022 05:30 AM
@Laura Blancarte @Werner Stinckens You can change the order of widgets displayed in the notebook by going into widget edit mode and dragging the widget to the expected order.
03-16-2022 04:31 AM
I think widgets are ordered by their label.
So if you would change your label of end_date to zend_date it would appear last.
But that is not very interesting ofc.
I tried if this works with the widget name but that does not do anything.
03-16-2022 05:30 AM
03-16-2022 06:25 AM
@Ravirahul Padmanabhan and @Werner Stinckens , for me going into edit mode as suggested by Ravi worked like a charm! Thank you both!
03-16-2022 07:26 AM
Hi @Laura Blancarte , That's awesome. Would you like to mark @Ravirahul Padmanabhan post as the best answer?
03-17-2022 07:53 AM
Done 🙂
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group