Skip to Content
Menu
This question has been flagged
1 Reply
889 Views

Currently, I have one of the following text conditions in a field (char) called next_step:

Awaiting Stock

Awaiting Delivery

Awaiting Customer info


I want to create an automated action to update the next_step field value to be what ever is currently in the next_step field to + ", Register Payment", when certain action occurs.

I've set the python expression to be

next_step = next_setp + ", Register Payment"

But I'm triggering an error saying the = symbol is an invalid syntax.


Anyone can share some lights?

Avatar
Discard
Best Answer

Hi Chrisy,

It makes it so much easier to anwser your question when you post your entire code.
I think the error is not per se the = symbol but the error is somewhere else.

But i prefer string editing this way. because it makes it easier to do formatting.

if record.next_step == "something":
​next_step = "%s, Register Payment" % record.next_step

Avatar
Discard
Related Posts Replies Views Activity
0
Sep 24
121
0
May 24
23
1
Apr 24
2610
0
Mar 24
416
0
Mar 24
532