Only a few weeks into my first Bubble build, and although I’ve tried searching, I’m now reaching out for help/ideas.
I’m building a small site for our employees to track customers and customer’s projects. A mini CRM / note / task tracking thing.
Currently when we get a phone call, a browser window pops up and I am able to populate the ‘name’ and ‘phone number’ inputs from the URL parameters.
I would like to do a search based on the phone number in the input/URL and redirect them to a certain page. For example, I have a data type ‘Clients’ and if the number already exists in the database, it would redirect to a ‘Details Page’. If does not exist, go to an ‘New Caller’ page.
I have tried a few different ways of doing a search for on page load, or create an event such as when event is true or on change - but I can not get them to work. However I can not tell if the method I am using is incorrect or if it is just the syntax of what I am doing is wrong.
Any suggestions would be wonderful! Even a nudge into which type of solution I should be researching more would be a great help.
Hope I understand correctly but this is what I would do.
Add an input type “integer” for you to input the phone nr in
In the database under user have the user phone as a field
Go to the workflow tab and add a new workflow. when an inputs value is changed.
Add the action go to page and go to page userpage (content type= user) Send data: Do a search for users where phone nr is inputs value: first item (as just one user should have that item)
It did not seem to work with ‘An input’s value is changed’ , I’m guessing because as the page loads those values are set from the URL and then do not technically change? But works great with a ‘on page load’ event, although now it loads a page then re-directs to the intended page. I suppose I can add a delay or something to make it look more seamless.