Conditional form fields in Lotus Notes - lotus-notes

I try to build an advanced form in Lotus Notes. Some fields should hide in condition to the state of other fields.
I can hide one field by defining a formula for this. But the problem is I have to first save the document, close it and reopen it to see the fields are hidden.
I want that the field is hiding while the UI doc is in edit mode when I change the state of fields.
Thank you!
Best regards
Robert

You can set option "Refresh fields on keyword change" to recalculate the hidden formulas of other fields.
This option is avaliable for fields of type
Dialog list
Checkbox
Radio button
Combobox

Try to use one of the following commands:
ViewRefreshFields
#Command([ViewRefreshFields])
or
RefreshHideFormulas
#Command( [RefreshHideFormulas] )
I hope this helps.

You can use various approaches to achieve this. If you use some sort of select-fields like Radiobutton or Checkbox you can use the field option "Refresh on keyword change" to recalculate the formula.

You could use Call notesUIDocument.RefreshHideFormulas but beware of it's greedy resource consumption on large forms.
Link on IBM Knowledge Center

Related

IBM Notes combobox choices not updating even when refreshing

After saving a specific field in a form, it will store on a view. This view is used by a combo box with a #DBColumn for the choices on another form. This combo box fails to show the recently made field as an option for choices. Even refreshing doesn't do the trick.
The combo box is editable and has "Refresh fields on keyword change" and "Refresh choices on document refresh" checked.
Thank you in advance for your help.
Use the "NoCache" parameter in #DbColumn.
"NoCache" gets the results of the lookup from the database; no cache
is used. If you want to ensure that Domino retrieves the latest
information for every lookup, specify this option.

Is there a way to prevent excel showing the drop down button, in a data validation cell?

Is it possible for excel to prevent the drop down toggle on a cell which has data validation? I am wanting the data validation to apply, but i would prefer the drop down button to not appear.
The reason for this, is the user is not having to choose a value, instead they handheld scan their ID badge.
I have searched everywhere and cannot find a solution.
Thanks in advance.
You just need to uncheck the In-Cell Drop-down checkbox.

Set multiple fields after selecting a document on the dialog list in lotus notes

I use a dialog list field with a view for choices. I need not only to set the current field with a value of the selected document but multiple fields on the current form.
When I select a document I want to read some fields from the selected document and set values on the current mask. I try to set the document id in the current dialog list field and get it and read in some refresh action? Is this a good approach?
Thank you! Best regards, Robert.
Solved it with a button and #PickList. So I have full controll over the action.

How do I set a SharePoint list field in NewForm.aspx based on an input radio button?

I have modified the NewForm.aspx page for a SharePoint list, and am changing the visibility of certain div's based on the value of radio input buttons. I'd like these values to be passed to a list field as well. I have a couple of questions regarding this:
1) How can I pass the Yes/No value from the radio input to a SharePoint list field?
2) Can I drop a Yes/No field from the list on the form and use that to control the visibility of my div's?
Thanks.
Since you're already using JavaScript, on your NewForm.aspx you could probably use SPUtility.js; full disclosure, this is an open source library I maintain.
Both of the options you mention are possible. I haven't added support for Yes/No fields (as of v0.3) but you could probably do something like this.
Create a single line of text field (will hold your value in the list). Lets call it "Text Field".
Based on our radio button input, call SPUtility to set the field's value:
SPUtility.GetSPField('Text Field').SetValue('Hello world!');
You could also probably hide "Text Field" so they can't see the value change.
Or... if you wanted to go with option #2, you could help me add support for Yes/No fields. :)
Hopefully this helps.
You can use our Smart List Pro product to modify your list form. We have various capabilities, such as showing/hiding fields depending on values of other fields and user identity, tabbed interface and much much more.

Infopath 2007: Hide a checkbox control

I'm developing an infopath 2007 web-form and I'd like to be able to hide a checkbox. The control doesn't do this inherently, so does anyone have a good method for hiding them?
Thanks.
Add conditional formating to the checkbox.
Remove the text behind the box (would be visible all time).
Add an expression field behind the checkbox and put your text in here.
Then give that expression box the same conditional fomating.
An alternative:
Put the checkbox into a scetion with conditional formating
(This needs more space but is eaysier to build and manage later.)

Resources