locked
Is it possible to call a JavaScript function from a dialog? RRS feed

  • Question

  • Hi there,

    At the moment I have created a dialog, that consists of three text fields that a user fills out, and then clicks next.

    What I am attempting to do, is pass the result of these three textboxes to a JavaScript function I have laying in a file in Web Resources. I've done some research, and I can't find anything.

    So my question is - is it possible to call a JavaScript function from a dialog?

    Thanks for your time.


    • Edited by Whew32 Sunday, February 15, 2015 11:55 PM
    Sunday, February 15, 2015 7:16 PM

Answers

  • Hi,

         It is not possible unfortunately. We can start dialog from script but not the other way unfortunately. However, you can always write server side code for this and it will surely execute. So instead of javascript, write plug-in.

    Hope this helps.
     
     -----------------------------------------------------------------------
     Minal Dahiya
     blog : http://minaldahiya.blogspot.com.au/

     If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

     

    • Proposed as answer by Minal Dahiya Monday, February 16, 2015 1:43 AM
    • Marked as answer by Whew32 Monday, February 16, 2015 7:39 AM
    Monday, February 16, 2015 1:43 AM

All replies

  • Hi,

         It is not possible unfortunately. We can start dialog from script but not the other way unfortunately. However, you can always write server side code for this and it will surely execute. So instead of javascript, write plug-in.

    Hope this helps.
     
     -----------------------------------------------------------------------
     Minal Dahiya
     blog : http://minaldahiya.blogspot.com.au/

     If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

     

    • Proposed as answer by Minal Dahiya Monday, February 16, 2015 1:43 AM
    • Marked as answer by Whew32 Monday, February 16, 2015 7:39 AM
    Monday, February 16, 2015 1:43 AM
  • Hi,

    Alright, thanks. I'll see if I'll go for that solution.

    Monday, February 16, 2015 7:39 AM