Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1572 Переглядів

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?

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
вер. 24
1480
0
трав. 24
26
1
квіт. 24
4924
0
бер. 24
1773
0
бер. 24
1766