Home Service Manager

user picker with @AutoComplete is not showing up in offering

alex_kokinalex_kokin Member IT Monkey ✭
edited June 2020 in Service Manager

Can someone please provide the proper settings for the three @AutoComplete fields in the layout options.

Answers

  • Adam_DzyackyAdam_Dzyacky Product Owner Contributor Monkey ✭✭✭✭✭

    Hey there @alex_kokin. Not sure I understand the question. Could you elaborate a bit more?

  • alex_kokinalex_kokin Member IT Monkey ✭

    Well I see it written up everywhere that to make the @AutoComplete work you have to create three fields.

    1. @AutoComplete Display Only Text
    2. Select User Optional Text
    3. Type Here Required Query

    Then in the query

    1. You use the Active Directory User and set the Field to use Start with the Token of number 2. above

    Nowhere in the instruction is it clear on how to configure the three fields in the Layout options

    I only see this screenshot. What exactly are the settings to make it work? I am confused because there are no setting in the two text fields to select.


  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭

    @alex_kokin - The 3 prompts for the @AutoComplete (case is important!) tag should be laid out like this:

    Then the criteria on the Query Results picker should look like this:

    This results in a single prompt that looks like this:

    And when I type into the field:


  • alex_kokinalex_kokin Member IT Monkey ✭

    So in the Layout option you just leave them all Show Always ?

  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭

    Yes. The code will hide the superfluous prompts.

  • alex_kokinalex_kokin Member IT Monkey ✭

    If I leave those all as Show Always, this is what I get.


  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭

    @alex_kokin - Are you sure the RO Toolbox code is running? Are you using loadScript to bring it in? If so, you should get the line "Loaded roToolbox.js" in the browser Dev Tools console.

  • alex_kokinalex_kokin Member IT Monkey ✭
  • alex_kokinalex_kokin Member IT Monkey ✭

    If I type in the Select a user field it now gives me the names instead of the full list. But its supposed to hide the @AutoComplete and the Filter box.

  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭

    You're not using loadScript to call the file, you're using getScript despite the fact that loadScript is present.. One of the advantages of loadScript is it will give you the message I referenced above. Another advantage, is that using loadScript will allow you to target the pages you want the code running on. In the case of the RO Toolbox, you'll only want it running on Request Offering pages. My line looks like this:

    loadScript('/CustomSpace/roToolbox.js',["RequestOffering"]);

    Can you try that?

  • alex_kokinalex_kokin Member IT Monkey ✭
    edited June 2020

    I changed it, restarted the cache and cleared browser. Still not hiding stuff. Can you attach your ROToolbox.js ?


    Can you please confirm that the Layout options for the fields are default.


  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭

    I have attached the roToolbox file I'm using.

  • alex_kokinalex_kokin Member IT Monkey ✭

    Strange its still not hiding the fields

  • alex_kokinalex_kokin Member IT Monkey ✭

    is it ok to have this part in the script? It was in the GitHub download.



  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭

    That's an older version of loadscript. Try replacing it with the one from here: https://community.cireson.com/discussion/comment/14268#Comment_14268

  • alex_kokinalex_kokin Member IT Monkey ✭

    This is driving me nuts, Still not hiding fields.

  • Justin_WorkmanJustin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭

    Now after you have changed to loadScript can you validate that the line is showing up in the Dev Tools console indicating that the ROToolbox is loaded?

  • alex_kokinalex_kokin Member IT Monkey ✭

    it appears not


  • alex_kokinalex_kokin Member IT Monkey ✭

    Ok I saw that error in the custom.js and fixed it, now its working. Thank you for the help.

Sign In or Register to comment.