0

I have one label that upload files, and below the label I have link "Upload more" that when I click on it, it have to create me another label same like the previous one. I'm doing this in Appian.

<a href="javascript:callShowHideLabel1("label2")">Upload More</a>

where label2 is my next label, and this goes to Instructions (if someone is familiar with Appian)

Here is my function:

function ShowHideLabel1(label){
    var l = FormAPI.getValue(label).id;
    window.FormAPI.show(label);
    return true;
}

Where do I go wrong?

benPearce
  • 37,735
  • 14
  • 62
  • 96

1 Answers1

0

Try

<a href="javascript:callShowHideLabel1('label2')">Upload More</a>

Using single quotation marks in the javascript code, you avoid conflicts with the quotes from your html code.

But please keep in mind that this is bad practise. You should bind a click event to that link firing the javascript code and set your href to a simple #.

Dennis
  • 14,210
  • 2
  • 34
  • 54