EditForm does not allow option to set SPJS-Lookup field to "blank"

Forums SPJS-Lookup EditForm does not allow option to set SPJS-Lookup field to "blank"

This topic contains 2 replies, has 2 voices, and was last updated by  Alex Ross 4 weeks ago.

  • Author
    Posts
  • #22116

    Alex Ross
    Participant

    Hello,

    I am using the SPJS-Lookup in a form and it works great. The only issue I have run into so far is that if the end user wants to edit an entry, then are not given the option to set the field back to the default of blank or empty. Is there a setting I am missing? Is this not possible?

    TIA

  • #22125

    Alexander Bautz
    Keymaster

    Hi,
    This was actually not possible (like the built in dropdown choice field), but I have added support for it in v1.1.12 by using an option allowBlank.

    Download the file, unzip it and replace the one you have in /SPJS/DFFS/plugins.

    Add the new option to your function call:

      ...
      ...
      "dropDownDefaultvalue": "",
      "allowBlank":true,
      ...
      ...

    Let me know how it works out.

    Alexander

  • #22132

    Alex Ross
    Participant

    That solved my problem.

    Thanks!

You must be logged in to reply to this topic.