I have a Form that has the setting “Formulas inherit values from selected document”. This is set to allow new “versions” of the document to be created from the document itself.
However, when the user clics on the new document button in the view (a simple @command([compose]) formula), I DON’T want the values inherited.
Am I looking at having to have 2 forms? I wish there was a parameter, either in @formula or LS that could allow me to create a blank document. I could always build one from scratch in LS, I suppose.
TIA
Mike
Subject: if the view is Categorized, put @Command([ViewCollapseAll]) before your Compose. No values will inherit.
Subject: Formulas inherit values… switch on and off programatically?
That last approach is your best. Just create the document from scratch in LS.
Subject: RE: Formulas inherit values… switch on and off programatically?
Thanks Ben,
I thought it would come down to that.
Oh well…onwards and upwards!
Perhaps a new feature in the next version of MIDAS??? Genii_MakeNotesDoWhatYouWantItTo.lsx 
Mike
Subject: Formulas inherit values… switch on and off programatically?
You could do this a couple of ways if this is not done from a categorized field as Bill suggested .
You could prompt the user if they want to inherit the info from the highlighted document:
create a ‘computed when composed’ field (called ‘prompt’ here) with the following formula:
@If(@IsNewDoc;@Prompt([YesNo]; “test”; “Inherit fields?”); “”)
In all the fields that you would want to inherit info, you could put the following in the ‘default value’.
@If(prompt = 1; fieldname; “”)
Or, if the form has a certain value where you would want to inherit the field info, such as formstatus = “Completed”, you could do the following:
@If(formstatus = “Completed” ; fieldname; “”)
HTH
Bob