Model is not updating after being populated via address validation service

  • 1
  • Problem
  • Updated 1 year ago
  • Solved
Hi,

I am running into an issue with my first Skuid project. I am creating a site page which will be used as an inbound marketing form. I have integrated an address validation service into the Skuid page which will populate an address after the user starts typing in a few characters and selects their address from a list.

The issue that I am running into is that the Skuid model is not updated after the address validation service populates the fields on the form. I can only get the Skuid model to update if a user types a value into the form. The result is once the model is saved and committed to Salesforce only the fields that a user typed in are actually included on the record. 

This issue is somewhat hard to describe via text, so I have recorded a short 2:48 demo (link below). 

http://screencast-o-matic.com/watch/cbQ1F7IjOa

I appreciate the help. 

Tim
Photo of Tim Wilson

Tim Wilson

  • 504 Points 500 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Janick

Janick

  • 916 Points 500 badge 2x thumb
Tim,

I've built something similar now and was able to see the behaviour, but could not reproduce the issue of not updating the model. 
I feel like this has to be something with the auto fill in/address validation service or the fields not recognising the entries made by the service. 

How does this work? Is this being entered with a running script?

Thanks,

Janick
(Edited)
Photo of Tim Wilson

Tim Wilson

  • 504 Points 500 badge 2x thumb
Hi Janick,

I have an in-line script in Skuid that, among other things, loads a PCAPredict script onto the page which provides the address validation feature. 

I agree, it definitely seems like the auto fill in from PCAPredict is for some reason not triggering the fields to update the model. 

I know I can grab the value of the fields using JS on a script that runs once the form is submitted and then manually update the model. I'm just hopeful there is a more elegant way to handle this issue. 

Oh, and since this is a public site page I could provide a link to the page if you like. Of course the page is running in a sandbox since it is currently in development. I wasn't sure what your policy was on sharing URLs in the forum. 

Thanks for the help!

Tim
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Hi Tim, if you wouldn't mind sharing the URL of the page you're working on, it would be helpful. We don't have a policy against sharing things like that, especially if it will help us get to the bottom of an issue. 
Photo of Tim Wilson

Tim Wilson

  • 504 Points 500 badge 2x thumb
Hi Mark,

The URL is https://tw02-pmi.cs14.force.com/IMF?id=701c0000000b96L. I'm sure you can tell by the Bacon Ipsum that this page is hooked up to a sandbox and is currently in development. Feel free to enter test submissions as needed. 

Also, please note I recently set several address fields to required on the form. If you select an address to be auto populated via PCA Predict you will notice that upon save it will now notify you that the required field has no value. Of course this is because the actual value is not saved to the model. 

Thank you for your help. 
Photo of Joseph De La Cruz

Joseph De La Cruz

  • 60 Points
Hi Tim -

This is Joseph and I'm with Addrexx.  We just completed an integration of our address validation solution for with a skuid page.  Please feel free to contact me if you would like to use our solution.  We can provide a plug and play solution option for domestic and international address validation.

Thanks!

Joseph
Photo of Janick

Janick

  • 916 Points 500 badge 2x thumb
Hey Tim,

Have you been able to implement this feature? Can we further assist you in any way?

Thanks,

Janick
Photo of Tim Wilson

Tim Wilson

  • 504 Points 500 badge 2x thumb
Hey Janick,

I was able to complete this project. I ended up pulling the values off of the fields via JS and then manually updating the model with the values. 

Thanks,

Tim
Photo of Janick

Janick

  • 916 Points 500 badge 2x thumb
Great to hear and definitely a good solution! Thanks for your feedback and have a great day!