Skip to Content
Menu
This question has been flagged
1 Odpoveď
1574 Zobrazenia

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
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
sep 24
1483
0
máj 24
26
1
apr 24
4924
0
mar 24
1773
0
mar 24
1767