Remove Lookup and Leave Plain Text Box behind

Forums SPJS-Lookup Remove Lookup and Leave Plain Text Box behind

This topic contains 3 replies, has 2 voices, and was last updated by  Alexander Bautz 2 months, 1 week ago.

  • Author
    Posts
  • #23327

    Bob Hornak
    Participant

    Hi Alexander,
    Is there a way to remove “SPJS-Lookup” and leave the plain text box behind? If I use the “spjs.lookup.kill(“MyField”)” it seems to kill the entire field.

    Thanks,
    Bob

    Attachments:
  • #23337

    Alexander Bautz
    Keymaster

    Hi,
    Are you looking at letting the user add their own value to the field? – if so, look at this functionality: https://spjsblog.com/dffs/dffs-plugins/spjs-lookup/#addYouOwnValue

    Alexander

    • #23339

      Bob Hornak
      Participant

      Hi Alex,
      Yes I would like the user to be able to enter their own value, but I was hoping to force that based on the “Country” selection. We have all the “State & Province” data to support US, Canada & Mexico, but outside of those counties, I want the user to be able to enter their own value. So I want to trigger your “AddYourOwnValue” functionality based on the selection in the country field not equal to US, Canada & Mexico.

      Thanks,
      Bob

  • #23341

    Alexander Bautz
    Keymaster

    I see. The “kill” function was intended for internal use in relation to the Add your own value, but I’ll fix it so it also works when calling from custom code.

    I’ll try to get the new version released during the weekend.

    Alexander

You must be logged in to reply to this topic.