Skip to main content
Question

Help with formula URL (or rich text) button

  • October 29, 2020
  • 0 replies
  • 184 views

I'm trying to create a button that will put a record into edit mode without changing any fields, and then save the record immediately after. I need this to happen in order to allow a JavaScript function in a code page to be implemented on the form using the IOL technique. 

The function itself does something to this effect:

var string = Math.random().toString(36).substring(2, 15);
$("#_fid_6").val(randomString);
If I manually click the edit button on the record, the function is implemented and the results are saved when the record is saved manually, but I'd like that to happen with a single button click.

Can anyone help? If anyone knows of a better way to accomplish this I'd be glad to hear it.


------------------------------
A Brown
------------------------------
This topic has been closed for replies.

I'm not familiar with any way a button could be coded to Edit and Save a record in the same click in the UI. I'm not terribly well-versed in JS, but it looks like you're trying to generate a unique code that includes a random value, is that accurate? If you share a bit of your use case for this, maybe we can find an alternative solution.

------------------------------
Blake Harrison
bharrison@datablender.io
DataBlender - Quick Base Solution Provider
Atlanta GA
404.800.1702 / http://datablender.io/
------------------------------