Updated multiple_text_inputs example to use an observer (#24758)