UI field set from url parameter

edited February 25, 2019 in Questions
I have a "search" model with a UI text field where the user inputs the text they want to search from.  Sometimes, based on the source where the user enters this page from, the search string is passed over using a URL parameter.

My url parameter is 'djnum' and the model doesn't query on page load, and creates a new model if none is found.

image

My problem is that the UI field always is populated with the parameter name itself - not the value, and not a NULL if the parameter is not found in the url.

In this example,url parameter djnum='test' so I would expect to see 'test' in my text box, not djnum.

image

Any ideas on this one?


Comments

  • edited February 25, 2019
    The user and all related content has been deleted.
  • edited December 6, 2016
    You are right, it works fine with a normal model field.  I don't understand why the UI field pulled the parameter name into the field, but I switched it over to a standard field in order to keep moving forward.  Thanks for the help.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!