Button to start a javascript

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
TWendt
Posts: 109
Joined: Mon Sep 08, 2014

21 Oct 2020

Hi all,

if its possible to create a button to start a javascript without saving. If it is possible,can you give me an example?

Best wishes
Tom

User avatar
mnikitina
Posts: 264
Joined: Wed Jun 05, 2019

22 Oct 2020

Hello Tom,

You can add a custom button to the form and add any JavaScript code to the button's OnClcik settings.
Capture.PNG
Capture.PNG (13.43 KiB) Viewed 7987 times

BrandonSoync
Posts: 1
Joined: Thu Nov 26, 2020

18 Dec 2020

Hi Jan, hi Leutz,

wie kann ich ein Radio Button:

<form name=formular>
<input type=radio name=bla value=1 checked>
<input type=radio name=bla value=2>
</form>

durch ein JavaScript umchecken:

function prelect

document.getElementByIdbla.value2.checked = true;


geht nicht

document.formular.bla2.checked = true;

auch nicht. Gehts überhaupt?

User avatar
mnikitina
Posts: 264
Joined: Wed Jun 05, 2019

24 Dec 2020

Hello BrandonSoync,

Please see the article on how to get or set SharePoint form field programmatically:

https://spform.com/javascript-framework ... eld-values

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests