HOW TO COPY A CHOSEN DROPDOWN VALUE FIELD TO ANOTHER TABLE EXCEPT FOR A SPECIFIC DROP DOWN VALUE | Community
Skip to main content
Level 5
April 9, 2023
Solved

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

  • April 9, 2023
  • 1 reply
  • 624 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijay_Katoch

You need to add condition like below

 

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

// then write your logic

}

1 reply

Vijay_Katoch
Community Advisor
Vijay_KatochCommunity AdvisorAccepted solution
Community Advisor
April 10, 2023

You need to add condition like below

 

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

// then write your logic

}