Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Add the following javascript code to the answerSpace.

    Code Block
    themeRDark
    languagexml
    titleAnnotation Javascript
    linenumberstrue
    collapsetrue
    * SET CAMERA / IMAGE ANNOTATIONS FOR BMP
    
     * Modified Ray Pearce 3/11/2014 
    
     * BIC2 Only at this stage.
    
     * Answerspace setup=>Native Application=>camera options must be set to allowEdit	true
    
     * 
    
     * This script will allow you to add annotations support for Blink forms
    
     * Add script below to HTML HEAD in answerspace setup to allow all camera / image fields
    
     * to allow annotations. 
    
     */
    
    <script>
    
      $(document).on('viewReady', function() {
      try{
    
    var old_updateCurrentConfig = updateCurrentConfig;
    
    updateCurrentConfig = function() {
    
    
    
    
    //call the existing updateCurrentConfig
    
    old_updateCurrentConfig();
    
    console.log('enabling image annotations'); 
    
    
    
    
    //enable image annotation
    
    if (currentConfig.cameraOptions) {
    
    currentConfig.cameraOptions = JSON.stringify(_.extend(JSON.parse(currentConfig.cameraOptions), {"shouldAnnotate":true}));
    
    console.log('cameraOptions extended to support annotations');
    
    } else {
    
    	currentConfig.cameraOptions = '{"shouldAnnotate":true}';
    
    console.log('cameraOptions created to support annotations');
    
    }
    
    }
    
    
    
    
    
    
    
     
    
      currentConfig.cameraOptions = JSON.stringify(_.extend(JSON.parse(currentConfig.cameraOptions), {"shouldAnnotate":true}))
    
     
    
      }catch (e) {// END try  
    
        log(e);
    
      }
    
      
    
    });
    
      
    
    </script>
    
    
  2.  shouldAnnotate option to the answerSpace configuration:

 

...

  1.  Once you have added the javascript to your answerspace you must ensure to set Answerspace setup=>Native Application=>camera options must be set to allowEdit true

For more details on See Annotation in the BIC Technical Documentation

Filter by label (Content by label)
showLabelsfalse
max5
spacesTD
sortmodified
showSpacefalse
reversetrue
typepage
labelsannotation image BlinkForm

...