How to pass data from HTML to Client to Server

mballinger
Mega Guru

Hello,

I have a Portal Widget that I am developing. There are a number of select fields that I have added. The widget also has a button field. I am able to successfully send data from HTML to Server on button submission. What I need now is to pass data from selection to server without submitting, this will act as a filter to pre-populate one of my drop down selections.

How can I pass data from HTML to Server or HTML to Client to Server without a submission?

Thanks!

 

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

I'd recommend checking out resources such as this to help give you an idea: https://serviceportal.io/communicating-between-the-client-script-and-the-server-script-of-a-widget/

As far as "submission", if you're going to the server you're pushing an "update" and then the server can decide what to do from there (so it doesn't have to actually insert a record or something).

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

1 REPLY 1

Allen Andreas
Administrator
Administrator

Hi,

I'd recommend checking out resources such as this to help give you an idea: https://serviceportal.io/communicating-between-the-client-script-and-the-server-script-of-a-widget/

As far as "submission", if you're going to the server you're pushing an "update" and then the server can decide what to do from there (so it doesn't have to actually insert a record or something).

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!