Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Assigning value to Oscript variable from html hidden field
(x-buiact01admin_-_(deleted))
is it possible to assign an Oscript variable a value from html hidden field?
Find more posts tagged with
Comments
Martin_Gäckler
Of course:Dynamic oScriptVar = .fArgs.htmlHiddenField;Hope this helps.Martin
(x-buiact01admin_-_(deleted))
I used the below code to get the value from hidden field and then assigned it to an Oscript variable. After that (to test) i assigned that Oscript variable value to a text field. The text field is having value "An unknown feature was specified". Can you please tell me whats wrong;Dynamic oScriptVar = .fArgs.hdt
Martin_Gäckler
Hi,please note: oscript runs on the server HTML and Javascript runs on the client. Thus within _one_ request it is not possible to process javascript or html items on the server with oscript.A better solution for your problem is:;Dynamic oScriptVar = "12" What I thout that you wanted to do is the following:bla bla blaIn Execute of mySuper.func:Dynamic oscriptVar = .fArgs.hdtHope this helps.Martin