JamesJames
8 years agoQrew Cadet
Help with formula URL
I am using a formula URL field to complete a field using a button on the main view. I would also like this button to create a record in a child table and copy across a couple of fields when it is clicked. At the moment the formula is:
var text url =
URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken="appToken"&rid=" & [Record ID#] & "&_fid_41="&URLEncode("Sales Feedback");
"javascript:" & "$.get('" & $url & "', function(){" & "location.reload();" &
"});" & "void(0);"
What would I need to do to add field ID's 10, 20, 30 to the new record on the child table, save and return to the original screen the button was pressed on?
Would also be nice to have a different color for the button as well.
Many Thanks
_
var text url =
URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken="appToken"&rid=" & [Record ID#] & "&_fid_41="&URLEncode("Sales Feedback");
"javascript:" & "$.get('" & $url & "', function(){" & "location.reload();" &
"});" & "void(0);"
What would I need to do to add field ID's 10, 20, 30 to the new record on the child table, save and return to the original screen the button was pressed on?
Would also be nice to have a different color for the button as well.
Many Thanks
_