Issue with clear functionality on a lookup field

edited May 23, 2018 in Questions
Issue with cross/clear function on a lookup field. User populates the lookup field and then clear it using the cross function highlighted below and hit save, the cleared value reappears in the lookup field and the record gets saved even though the field is a required field - 


Steps to reproduce - 

- Create a table and drag a lookup field which must be required field.
- Populate some value using the lookup dialog.
- Clear the value using the cross function.
- Try hitting save, the cleared value will reappear and the record gets saved. 


  • Amy DewaalAmy Dewaal ✭✭
    edited May 23, 2018

    I don't see that clear functionality on a standard look-up field, although I might be missing something. Is there a custom field renderer on that field or any javascript snippets on your page? 

  • edited November 15, 2016
    Sorry i should have mentioned before, this issue can be reproduced in Internet Explorer.
  • edited December 15, 2016

    The problem here is that the Internet Explorer only clears the field value in the HTML but not the model value. So although the browser displays an empty text-field, the value is still persistent in the skuid model and therefore can be saved (you would get errors all over the place when trying to save a required field with no value in it).

    You might need to write a listener for that click event and clear the value using a JS snippet.

    Before doing that, please clarify if your pages necessarily have to be displayed in Internet Explorer (since it's not the best browser out there ;))

  • edited November 15, 2016

    Don't you think this should be taken care by skuid itself?

    The business does not recommend using any other browser, so all our users use IE.

  • Amy DewaalAmy Dewaal ✭✭
    edited May 23, 2018

    You've found a bug; that "x" should clear the model as well. We'll let you know when a future release fixes this. 

  • edited November 17, 2016
    Thanks Amy for your response. Please keep me posted. :)
  • Karen WaldschmittKaren Waldschmitt 🛠️ 
    edited June 15, 2017

    Thank you for your patience! Skuid has fixed the issue you raised regarding the x in the lookup field on IE (issue CORE-51) in the new Brooklyn Update 1 - Iteration 8 and the Brooklyn Q2 Point Release - Iteration 1 releases which are now available on the Skuid Releases page.

    As a reminder, Salesforce does NOT allow reverting back to prior versions of managed packages. Skuid always recommends installing new versions in a non-business critical sandbox environment to test all mission critical functionality before installing into a production environment. We also recommend that you update out of date themes when you upgrade. Please let us know if you continue to encounter any problems with this issue after upgrading.

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!