You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to build a form in the Sulu admin that accepts a contact selection and a phone number selection. That part is easy enough.
Where things get a bit trickier is I'd like to tie the list of phone numbers that are displayed to the contact that's chosen. In other words, I'd like to enter someone's name and then have the list of available phone numbers dynamically update to match that contact's phone numbers.
It feels like I'm going to need to write my own JavaScript to accomplish this. But rather than reinvent things, I wanted to make sure there wasn't already a way to do this.
Is there an existing way to dynamically update a form property based on the contents of another property?
I've taken a look at the Sulu JavaScript documentation and while there's a lot of really good information in there, I'm not quite sure where to begin. If there's an existing example that does something similar or if there's a recommended place to start looking, that'd be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm attempting to build a form in the Sulu admin that accepts a contact selection and a phone number selection. That part is easy enough.
Where things get a bit trickier is I'd like to tie the list of phone numbers that are displayed to the contact that's chosen. In other words, I'd like to enter someone's name and then have the list of available phone numbers dynamically update to match that contact's phone numbers.
It feels like I'm going to need to write my own JavaScript to accomplish this. But rather than reinvent things, I wanted to make sure there wasn't already a way to do this.
Is there an existing way to dynamically update a form property based on the contents of another property?
I've taken a look at the Sulu JavaScript documentation and while there's a lot of really good information in there, I'm not quite sure where to begin. If there's an existing example that does something similar or if there's a recommended place to start looking, that'd be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions