--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/f24e4719-9050-4470-bbb0-f09cde79d8ad%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_DuuZp%3DhZC7%3Dr%3DovyMVa72B9WqAV%2ByMbxx37kEA_uVqKZrw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAD0DWAOLKjHVGPT2uYRiHDUc2H%3DEwHxmAZtu%2BFadEdVYNKzkYA%40mail.gmail.com.
f.entry() { raw(""" <button class="gen-secret"> Generate Secret Token </button> """)}
raw(""" <script> document.getElementByClassName("gen-secret").addEventListener('click', function(e) { e.preventDefault(); document.getElementByClassName("secret-text").value = token; }); </script>""")
Sorry, I got distracted when i hit enter.you want a click event for the buttondocument.getElementById("buttonid").addEventListener('click', function(e) {document.getElementById("idname").value = "foo";});
On Thu, May 21, 2020 at 3:11 PM Parichay Barpanda <parichay...@gmail.com> wrote:
Thanks Gavin. That was helpful. :)
On Fri 22 May, 2020, 03:10 'Gavin Mogan' via Jenkins Developers, <jenkin...@googlegroups.com> wrote:
document.getElementById("buttonid").addEventListener(function(e) {document.getElementById("idname").value = "foo";});
On Thu, May 21, 2020 at 2:27 PM Parichay Barpanda <parichay...@gmail.com> wrote:
Hi,--I want to set value of a Describable field using an UI button. There is a text box Token and there is a button Generate, if Generate Button is clicked then Token text box should be filled with a desired value.Thanks and Regards,Parichay
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/f24e4719-9050-4470-bbb0-f09cde79d8ad%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAG%3D_DuuZp%3DhZC7%3Dr%3DovyMVa72B9WqAV%2ByMbxx37kEA_uVqKZrw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkin...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/39bc0fbb-4657-4ef4-9625-d776a2a4d498%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/39bc0fbb-4657-4ef4-9625-d776a2a4d498%40googlegroups.com.
var buttons = document.getElementByClassName("gen-secret")for (var i = 0; i < buttons.length; i++) {
buttons[i].addEventListener('click', function(e) {
e.preventDefault(); document.getElementByClassName("secret-text").value = token; });}
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/04e13fad-3502-4645-8d98-4b14b2b0b7fe%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/04e13fad-3502-4645-8d98-4b14b2b0b7fe%40googlegroups.com.
buttons[i].addEventListener('click', function(e) {
e.preventDefault();
var container = e.target;
while (
container.parentNode &&
container.parentNode.classList.indexOf('repeatable-property');
container
=
container
.parentNode;}
container
getElementByClassName("secret-text")[0].value = token; });
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/286e1495-fc66-44a0-a751-ccbec0ead06c%40googlegroups.com.