Web Form - field refresh question

I have a form that is used on the Web. When we populate a field with a value of a “Yes”, is it possible to use a Hide when statement so that the other fields that we no longer want to display will not display?

I have set the field that is changing in value to refresh the doc. Since I haven’t worked a lot on Web apps, not sure how I can do this.

Thanks in advance for your comments.

Jean

Subject: Web Form - field refresh question SOLVED

Just to let everyone know that I was doing some searching on Google and found this bit of info which works great.Credit for this goes to JoeLitton.net and the keysolutions link.

Just wanted to let others know about this neat function.

A quick search turned up this link: http://www.keysolutions.com/NotesFAQ/how5.html. Very cool. The code works wonderfully, so all I had to do was pop it into a function for easy calling.

Put this function into the JS Head - or better yet into a JavaScript page or file that you reference in the HTML head (note that there are 2 underscore characters before the “Click”:

function refreshDoc() {

document.forms[0].__Click.value = '$Refresh';

document.forms[0].submit();

}

…and then when you need to refresh the hide formulas, just issue this command: refreshDoc();

Thanks all,

Jean

Subject: RE: Web Form - field refresh question SOLVED

Jean… there’s so much fun you can do with javascript and div tags. It’s a better interface for users because their screen doesn’t refresh.

Place div tags around the fields to be toggled:

my fields

Then on the “onchange” event of your field… you can hide or show the div using these statements:

if (field.value == "Yes") {

	document.getElementById("myToggleFieldset").style.display = "block";

} else {

	document.getElementById("myToggleFieldset").style.display = "none";

}