How to get a value from an HTML form in a Remedy View Field and set that value to a field in the...

1
How to get a value from an HTML form in a Remedy View Field and set that value to a field in the Remedy Form. Back to Answers Printer Friendly Rate this Page Knowledge Article ID: KA336428 Version: 1.0 Status: Published Published date: 01/20/2011 Problem How to get a value from an HTML form in a Remedy View Field and set that value to a field in the Remedy Form. Solution This is one example of how to accompish this. Your solution may be different depending on where and when you need the Remedy field set. But the fundamental code will be pretty much the same. In the Remedy Administrator tool, on the Source tab of the Remedy Form (web view), add the following code just above the </body> tag: <SCRIPT> function getFrameValue() { var fieldval = parent.frames[0].document.testform.testfield.value; theForm.getField("F8").set(fieldvOnal); } </SCRIPT> Now create an active link (that fires on a button, for example) that calls this function with the following run process: javascript:getFrameValue() The script above: 1) Fetches the value from frames[0] which in our case is the View Field (Iframe) referrence. 2) Looks a the document (web page) you have loaded in the View Field. 3) Looks for the <form> named "testform". You will adjust this to reference the name of the <form> in the web page you have loaded in the View Field 4) Looks for the <input> (field) named "testfield". You will adjust this to reference the name of the <input> (field) in the web pag you have loaded in the View Field. 5) Gets the value of the <input> (field). 6) Sets the value to field "F8" (Short Description). You will need to adjust this to set the field (by ID) you want the value set to. Legacy ID 20763 KM20763 KM000000020763 KM000000020763

description

How to get a value from an HTML form in a Remedy View Field and set that value to a field in the Remedy

Transcript of How to get a value from an HTML form in a Remedy View Field and set that value to a field in the...

Page 1: How to get a value from an HTML form in a Remedy View Field and set that value to a field in the Remedy

8/19/2015 BMC Software

data:text/html;charset=utf­8,%3Cdiv%20class%3D%22im­page­subtitle%22%20style%3D%22padding%3A%200px%3B%20margin%3A%200px%200px%201… 1/1

How to get a value from an HTML form in a Remedy View Field and set that value to a field in the RemedyForm.

Back to Answers Printer Friendly Rate this Page

Knowledge Article ID: KA336428Version: 1.0Status: Published

Published date: 01/20/2011

Problem

How to get a value from an HTML form in a Remedy View Field and set that value to a field in the Remedy Form.

Solution

This is one example of how to accompish this. Your solution may be different depending on where and when you need theRemedy field set. But the fundamental code will be pretty much the same.

In the Remedy Administrator tool, on the Source tab of the Remedy Form (web view), add the following code just above the</body> tag:

<SCRIPT> function getFrameValue()

var fieldval = parent.frames[0].document.testform.testfield.value; theForm.getField("F8").set(fieldvOnal); </SCRIPT>

Now create an active link (that fires on a button, for example) that calls this function with the following run process:javascript:getFrameValue()

The script above:1) Fetches the value from frames[0] which in our case is the View Field (Iframe) referrence. 2) Looks a the document (web page) you have loaded in the View Field. 3) Looks for the <form> named "testform". You will adjust this to reference the name of the <form> in the web page youhave loaded in the View Field4) Looks for the <input> (field) named "testfield". You will adjust this to reference the name of the <input> (field) in the webpag you have loaded in the View Field.5) Gets the value of the <input> (field).6) Sets the value to field "F8" (Short Description). You will need to adjust this to set the field (by ID) you want the value setto.

Legacy ID

20763 KM­20763 KM­000000020763 KM­000000020763