Skip to Content
Menú
This question has been flagged
1 Respondre
1472 Vistes

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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
0
de set. 24
1140
0
de maig 24
26
1
d’abr. 24
4462
0
de març 24
1440
0
de març 24
1540