I’m attempting to run client-side form field validations. I’ve added all of the components into an List so that I can iterate through them and pull their current values and do my validation checks.
The problem I’m running into is that to access the current value of a textbox (self.firstname_textbox.text) throws an error when using some other component types like a Drop Down that doesn’t have a .text property.
Question: Is there a way I can access a component’s name or type (eg label, dropdown, checkbox, etc) so I can use a conditional to access the component’s current value using the appropriate property (eg .text .selected_value)?
Thanks.