Help
test replace-string Untitled Form { "inline" : true, "hidden_input" : false, "language" : "en", "statusbar" : false, "menubar" : false, "plugins" : "lists link", "toolbar" : "bold italic | bullist numlist outdent indent | link", "browser_spellcheck" : true, "encoding" : "xml", "entity_encoding" : "raw", "forced_root_block" : "div", "visual_table_class" : "fr-tinymce-table", "skin" : false, "convert_urls" : false, "content_css" : "default" }
Form Structure
Text Controls
Utility Controls
Typed Controls
Date and Time
Selection Controls
Attachments
Buttons
Global Library
Attachments
Actions
HTTP Services
Database Services
Orbeon Forms PE Feature
It appears that you are using . Form Builder is likely not working properly with this browser. We recommend you upgrade to or newer, or use Google Chrome, Firefox, or Safari. If we made a mistake and you are not using , please let us know.
Form Settings
It appears that you are using . Form Builder is likely not working properly with this browser. We recommend you upgrade to or newer, or use Google Chrome, Firefox, or Safari. If we made a mistake and you are not using , please let us know.

Email Settings
Messages
Control Settings
Section/Grid Settings
Edit Choices
Source
HTTP Service Editor
Control Names
Attach PDF templates
Test PDF Production
Permissions
Confirm

if($control[contains(text(), 'MB_')]) then replace($ control  ,"MB_","")  else if($ control[contains(text(), 'NA_2')]) then replace($ control  ,"NA_2","")  else if($ control[contains(text(), 'NA_3')]) then replace($ control  ,"NA_3","")  else ''
 
I am trying to use the calculated value to modify what goes to an alternate control.  Basically one control goes to two data base destinations and should contain the same value.  The answers in the control are set with a prefix to indicate the database destination.  For the first destination I want to remove the prefix and keep the database answer.  But then I need the if statements to continue so that it removes the answers that will be moved to the second database destination.
 
In short, I need the if statements to not terminate when the first is executed.  I imagine that i need a different operator or need to modify the placement of parentheses? I just do not know the syntax.
Mark this checkbox if you'd like to type HTML tags Click to enter a label Type your label here Click to add a hint Type your hint here Click to enter text Type your text here
Click to enter a section title Type your section title
df43586459985c768617c53e6a499bd1d3992bb0
Remove File
Remove File
Remove File
Remove File
Remove File
Add Language
Publish Form

XML Schema Upload
Remove File
Actions Editor
Database Service Editor
Confirm
Form Preview
Confirm
Form Submitted
Review Form Validation Messages
Unable to complete action
Confirmation
Confirmation
Create link to share