AnsweredAssumed Answered

Scripting Button Bar to Add or Remove Text from a Field

Question asked by bHouston on Oct 11, 2018
Latest reply on Oct 12, 2018 by philmodjunk

Hello! I have an image keywording database. I am using the calculation below to populate keywords into a button bar based on the contents of a field (breaking down a comma-space field of keywords into individual keywords). I want to script each button to allow a user to apply or remove that particular keyword from a field - essentially, determine if the particular keyword is already in the field mentioned above and if not, add it. Conversely, if it is in the field and the button is clicked, to remove that keyword from that field.

 

I am stuck on how to write one script/calculation to do this! Thanks in advance for your time and assistance!

 

 

Let ( ListedValues = Substitute ( CommaListField ; ", " ; ¶ ) ;

       GetValue ( ListedValues ; 1 )

      )

Outcomes