From 6144ed8d1edcea739f1b89148dcf1bee7b0b23c9 Mon Sep 17 00:00:00 2001 From: Pelle Koster <pelle.koster@geant.org> Date: Mon, 17 Feb 2025 07:59:32 +0100 Subject: [PATCH] add some docs about visit form javascript --- docs/source/development.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/source/development.rst b/docs/source/development.rst index 78efeab..0919d94 100644 --- a/docs/source/development.rst +++ b/docs/source/development.rst @@ -176,6 +176,13 @@ The redirect to the stripe checkout server in Visit is done using a custom javas .. image:: _images/visit-form-redirect.png :alt: Visit form redirect instructions +.. warning:: + There is another method of adding javascript, namely in the form settings rather than the custom + page settings. These are the first settings you see when editing the form. Any javascript placed + here is activated for the whole form rather than a single page. Also, Javascript placed in the + form settings, overrides any javascript placed in page settings, so this will deactivate the + automatic redirect. + Redirect URL ############ -- GitLab