wispy-oliveW
Refine•3y ago
wispy-olive

How Can I add some code before I save in Edit Basic View?

ā„¹ļø info
I got an Edit Basic View, and I want to do something before the form submitted.
I want to restructure my data (turn several fields to a JSON in database) before the form submitted.

My thinking is
Restructure the data before form updated (the save button
onClick
)

So I did what the picture shows.

ā“ issue
  1. I seems the
    onClick
    property will be overwrite if I set it by myself
  2. Is there's another or proper way to achieve my purpose? or I have to reinvent the
    onClick
    function? šŸ™ā€
55a2d3c99ee18123.png
Was this page helpful?