Looking for a little help with an issue that I cannot seem to get. In a Form I have, I have an HTML field with the following:
<a class="links" id="a2" onclick="window.open(href='http://servername/laserfiche/Browse.aspx?repo=DEVVATS#?search={[Veteran]:[Veteran ID]='+document.getElementById('Field321').value+'}&{LF:Name=*, Type=F}&view=search'); return false">Click to view the Veteran folder</a>
This is a hyperlink that launches a new window and is supposed to run a search in WebAccess for a folder, with the Veteran ID field that has the value of Field 321 on our Form.
This seems to work...but then fail and I don't know why. When I click the link a new page opens with this:
Decoding this gives:
http://servername/laserfiche/Browse.aspx?repo=DEVVATS#?search={[Veteran]:[Veteran ID]=1000033738}&{LF:Name=*, Type=F}&view=search
If I paste {[Veteran]:[Veteran ID]=1000033738}&{LF:Name=*, Type=F} into the search syntax I get my folder.
Yet use the link, after displaying the original link it jumps down to http://servername/laserfiche/Browse.aspx?repo=DEVVATS#?{LF:Name=*, Type=F}&id=6874
Its almost like it tried to run my search URL but then something switches and it runs the above line. The above line is incorrect and it give me the contents of the folder I am looking for
Does anyone know why the URL would seem to be switching shortly after launching? I assume maybe its syntax but cannot figure out what is wrong.
Edit - Or is it working? In WebAccess it seems to not show the folder. But open the folder and display its contents. In the full client it returns the folder (not landing "inside it")
Thanks,
Chris