informations for tables and radio buttons

L

Lorenza Coccetta

Good morning!!
I'm Lorenza Coccetta and i'm having a stage in a public
company called "Regione dell'Umbria". I must create a form and it will
be published on line because it is a public announcement for companies.
I'm using Ovis pdf-office but i've 2 problems:
1)how can i do, when the campany choose an option of a radio button, to
"hide" a part of the form (to show the parts of the forms depending the
option choosen)???
2)in the form there will be some tables: how can i do to make the number
of rows "variable" (not fixed, but dependent to the company needs).For
example, for default i can create a table with a row and when the
company fill in the table needs 4 rows, how must i do??
Thanks in advance!
p.s.:I want to create dynamic PDF forms which requires JavaScript.
 
A

Alberto

You hide a part of the form by giving to the part an id to a DIV tag that
encloses that part, instance:

<form> bla bla
<div id="ciao" style="display: inline">
<input ecc...>
</div>
</form>

when clicking a radio button you want to hide that portion:
document.getElementById('ciao').style.display='none';

To get it back:
document.getElementById('ciao').style.display='inline';

An example with a checkbox, assuming the ID of the div is "ciao":

<input type="checkbox" onClick="if(this.checked){
document.getElementById('ciao').style.display='none'; }else{
document.getElementById('ciao').style.display='inline'; }">

ciao
Alberto
http://www.unitedscripters.com/
 
T

Thomas 'PointedEars' Lahn

Lorenza said:
Good morning!!

Good evening. Your Exclamation Mark key is borken.
I'm Lorenza Coccetta and i'm having a stage in a public
company called "Regione dell'Umbria".

I'm Thomas Lahn and I'm not having a stage in a public company :->

(Do you really think nobody can read your From and anybody cares?)
I must create a form and it will be published on line because it is a
public announcement for companies. I'm using Ovis pdf-office

Never heard of that one.
but i've 2 problems:
[...]
p.s.:I want to create dynamic PDF forms which requires JavaScript.

Your questions are not about the scripting language, they are about using
the language in a certain host/development environment where either one is
most likely not the (target) environment of the subscribers of this group
(usually this group deals with Web scripting using plain-text editors).

You should better ask those questions in a group dealing with PDF or the
development environment you are using. If you then encounter problems
with the language (such as a script error), you should ask here again.


HTH

PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top