Digital Assistant and Mobile

Get Involved. Join the Conversation.

Topic

    Michael Simonetti
    Address Entity ValidationAnswered
    Topic posted February 25, 2019 by Michael SimonettiGreen Ribbon: 100+ Points, last edited March 11, 2019 by Arijit ChakrabortyBronze Trophy: 5,000+ Points, tagged Tip 
    126 Views, 6 Comments
    Title:
    Address Entity Validation
    Content:

    Hello, we have a field where we ask for an address, we want to check that this address belong to certain state or province.

    Is this possible?

    Thanks in advance.

    Best Comment

    Grant Ronald

    The ADDRESS entity is a validation not a look up - so if you put in Los Angeles it validates that as a valid city but it doesn't look up its address to complete e.g. state, country etc.  If you wanted to do a look up based on the fact that someone supplies a city you need a web service to do that  - there are plenty around.

    Comment

     

    • Grant Ronald

      Couple of options - with the latest version of ODA there is a feature called composite bag - that would allow you to define an entity of type ADDRESS and then you could add a validation rule that would specifically check that any valid address MUST also have the state set to, e.g. California.

      Should be relatively simple ;o)

       

    • Michael Simonetti

      Thanks Grant, we will give you a shoot and confirm.

    • Michael Simonetti

      Hi Grant,

      If we enter address as Los Angeles - then it should get validate on state of california which is not happening.

      While entering Los Angeles - ADDRESS entity type not return any state value 

      is there any way to validate city or address lies on specific state or not?

      e.g: validating Los Angeles => state of california

    • Michael Simonetti

      It seems we cannot get state from an address, if we enter Los Angeles, we don't get anything to validate state or country as per image...

    • Grant Ronald

      The ADDRESS entity is a validation not a look up - so if you put in Los Angeles it validates that as a valid city but it doesn't look up its address to complete e.g. state, country etc.  If you wanted to do a look up based on the fact that someone supplies a city you need a web service to do that  - there are plenty around.

    • Michael Simonetti

      Hi Grant, yes, we understand is a validation.

      Our issue is on get the rest of the information not typed by user like country.

      Anyway, we will use an external web service to ask for them.

      Thank you very much.