No info how to run action button of run_js_code

General

No row selected
No row selected
yosi     7 months ago

Hello.

I started creating a system on Saltcorn platform, and the documentation is very basic.

Now i'm struggling to collect input and do something with it by JS small function, but it seams like I'm missing something fundmental on how that run_js_code works.

I can't figure out how can I query the html elements, since the object 'document' is not accessible that way.



No row selected
No row selected
      7 months ago

Вучићу ПЕДЕРУ


No row selected
No row selected
      7 months ago

run_js_code has a "Run Where" setting below the code itself, if you set that to "client" you can access document and $ for jquery  


No row selected
No row selected
yosi      7 months ago

Thanks. that help!

Now I have just to figure out how to use the output to update the view state.


No row selected
No row selected
      2 months ago

asd


No row selected
No row selected
      a month ago


Sign up to post a reply