Skip to main content
Solved

Automations - appending a field automatically

  • Jun 28, 2023 4:12 PM UTC
  • 4 replies
  • 80 views

Forum|alt.badge.img+3

Hi 

I cannot figure out how to, if it is even possible, to update a specific field ( which is currently blank ), with specified text, which is appended on to the back of another fields data, within the same record, when a third field matches a certain condition. A bit of a tongue twister, apologies. 

For example :

I have 3 fields, namely status, name and surname.

First field :  Status 

Second field : surname 

Third field : left blank 

The first field ( status ) is populated with Awaiting order completion. The second field ( surname ), is populated with deer.  

Every time I change the status to order complete, I would like the third field ( which is blank ), to be auto populated with the second fields data ( surname ), deer in this instance, and have specified text appended. Therefore the third field should look like this : deer specified text. 

Can anyone offer any guidance on this please ? Hopefully this is not too confusing. Trying to use arbitrary values. 

Thanks

 

Best answer by Sho

Hi, @Kyle_Eastwood 

How about a third formula field like this?

IF({Status}="Order Complete",{surname} & " specified text")

 

View original
This topic has been closed for replies.

4 replies

Forum|alt.badge.img+24
  • Inspiring
  • Answer
  • Jun 29, 2023 1:05 AM UTC

Hi, @Kyle_Eastwood 

How about a third formula field like this?

IF({Status}="Order Complete",{surname} & " specified text")

 


Forum|alt.badge.img+3
  • Author
  • New Participant
  • Jun 29, 2023 1:55 PM UTC

Hey @Sho 

Thanks for the help, although I'm no expert at code, so please excuse my ignorance here. As an action, do I choose run a script and literally copy and paste the above code into line 1 ? I am probably doing it completely wrong! 

I tried the above and the following error occurs : ERROR
ReferenceError: IF is not defined
at main on line 1

Thanks

Kyle 

 


Forum|alt.badge.img+24
  • Inspiring
  • Jun 29, 2023 11:20 PM UTC

You just set the third field to Formula field and input this formula
Specified text also seems to be dynamic text, how is the Specified text input?


Forum|alt.badge.img+3
  • Author
  • New Participant
  • Jul 4, 2023 1:32 PM UTC

You just set the third field to Formula field and input this formula
Specified text also seems to be dynamic text, how is the Specified text input?


@Sho Apologies for the slow response.

The specified text is always the same. The dynamic field is the surname field. The "Order Completed" field is selected from a dropdown. 

I have just tested the formula and it has worked a treat. A huge thank you for your help. This is really useful.

Thanks 
Kyle