Expand my Community achievements bar.

SOLVED

HOW TO COPY A CHOSEN DROPDOWN VALUE FIELD TO ANOTHER TABLE EXCEPT FOR A SPECIFIC DROP DOWN VALUE

Avatar

Level 6

Good day,

I have a table that has a drop down list in one of the rows.  I also have a button which copies the value of that row to another table.  I need to copy whatever value that is in the drop down list row to a new table except for a specific value (choice).  Example:  The drop down list has three names.  Cat, Dog, Fish.  If Cat or Dog is the chosen value for that row, then that value is copied to the new table when the button is clicked.  But if Fish is the chosen value for that row, then the value "Fish", will not copy to the new table.  Is there a script for that?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

You need to add condition like below

 

if(dropdown.rawValue  != "Fish"){

// then write your logic

}

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

You need to add condition like below

 

if(dropdown.rawValue  != "Fish"){

// then write your logic

}