コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1571 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
9月 24
1480
0
5月 24
26
1
4月 24
4924
0
3月 24
1773
0
3月 24
1766