I have a Ref column and I want to configure a sequence of actions when the form is saved that has two actions:
Write the value of that Ref column (BTW, the ref table’s key happens to be Datetime but the value NOW() is not accepted as the value to be written to the column. I had to make it CONCATENATE(NOW()))
Go to the form passing in that value in LINKTOFORM. The exact formula I am using is LINKTOFORM(“Other Customer Log”, “Timestamp”, [_THISROW].[CustOther])
However, the second action is not working. Of course, that row doesn’t exist so I am expecting that the form will open regardless.
When I test the latter formula in the Expression Builder, I see control=Other%20Customer%20Log&defaults=%7B%22Timestamp%22%3A%22%22%7D which is showing a blank value is being passed for CustOther even though the previous action is populating that column.
App Name is CombinedOPTXSpliceLog-522895 To reproduce, you can open any row for Name Blake Young, clear the value for CustOther (if it is present) and save the form
@tony thanks. Yes, the view is actually called Other Customer Log_Form and I changed it but it still does not work. I tried removing the [_THISROW] and that did not work either. It seems that LINKTOFORM won’t open the form as this is a new row although it used to work before, I believe.
BTW, I can get my script to work by using a URL such as http://…#table=Other%20Customer%20Log&row=JKBjNIk8&page=form so I think I will try that with action instead of LINKTOFORM()
Yes, in your example, none of the columns are of type Ref. I think that is the issue in my app. If you try to make one of the columns in Table1 be a ref to Table2, you should see what I am seeing.