Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Visual format + Formapi + cgi-callout question
Migrateduser
Hello,
I got a Visual format + Formapi + cgi-callout question.
Scenario:
3 items - visual format, textarea, callout button
Task - use callout (perl script) to active the visual format window, when I click "ok" on the cgi form, data will be set on the textarea. However, the textarea will be invisible to clients.
Problem:
If I apply the <hidden> tag or use the setVisiibility(false) method from formapi, it will hide the button also. Therefore, I seperate the button and the textarea into two items and then hide the textarea item. Furthermore, in the cgi callout script I hard-coded the form value for the textarea as follow:
#my $element_name = $cgi->{'form'}{'iw_callback_var'};
my $element_name = "test/AGS_Full_Text"; #<---name of the form field
Result:
It worked when I didn't set the "visibility = true" (formapi) on the textarea, but it failed when I did so.
What bothers me was that I could use an inline script to pre-populate a form field that is not visible (by formapi, not the <hidden> tag), but I couldn't use a cgi-callout script to achieve the same goal. Does anyone know how to do that?
Thousand thanks!!
Find more posts tagged with
Comments
There are no comments yet