Color select Script needs refining

Hello

I've been running this simple script (created by an end PS scripter) in action:

#target Photoshop

main() {} function

if(!documents.) Length) return;

app.activeDocument.colorSamplers.removeAll ();

var X = activeDocument.width.as('px')/2;

var sample = activeDocument.colorSamplers.add ([new UnitValue (X, 'px'), new UnitValue (1, 'px')]);

app.backgroundColor = sample.color;

app.activeDocument.colorSamplers.removeAll ();

}

main();

It selects the top center pixel color, sample, for the bottom point. Now I need to select a 5 x 5 moy. Second, is there a way to hide the INFORMATION pane, which opens by running the script? This appears not be called from an action, of course, and I'm not script.

Thanks for any help.

This should make an average...

#target Photoshop
function main(){
if(!documents.length) return;
var startRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.PIXELS;
try{
app.activeDocument.colorSamplers.removeAll();
var X = activeDocument.width/2;
var LB=[];
LB[0] = X.value;
LB[1] = 1;
LB[2] = X.value +5;
LB[3] = 6;
var tmpColour = new SolidColor();
var savedState = activeDocument.activeHistoryState;
activeDocument.selection.select([[LB[0],LB[1]], [LB[2],LB[1]], [LB[2],LB[3]], [LB[0], LB[3]]], SelectionType.REPLACE, 0, false);
activeDocument.activeLayer.applyAverage();
var sample = activeDocument.colorSamplers.add( [ new UnitValue( X+1, 'px' ), new UnitValue( 2, 'px' ) ] );
tmpColour=sample.color;
activeDocument.activeHistoryState = savedState;
app.backgroundColor=tmpColour;
app.preferences.rulerUnits = startRulerUnits;
}catch(e){alert(e + " - " + e.line);}
}
main();

I was not able to stop the information panel so I add to my open panels is not intrusive.

Tags: Photoshop

Similar Questions

  • Model by unwanted color change script

    I defined a model I intend using as a filling. After that I selected scripted brick and model of the pop box filling up I noticed that it is by changing the colors of my boss. I put the cursor of random color to 0 but the colors of my original pattern are different.

    I don't want my pattern color to change. Is this possible?

    I thought about it.

    If your color RGB mode the colors remain the same. Is it your CMYK color mode as it was for me, the colors change.

    You must change it back between RGB and CMYK

  • Where is color selection tool in Photoshop

    Hola, soy nueva con esto, alguien me could decir donde esta the color selection tool?

    Hello, you go to the color of the Image/adjustments/replace. Once you're in the color window replace, click on the color you want to replace to select. Adjust the selection using the Fuziness value and choose new colors mingle settings in the lower area.

  • Where is the cursor color in Illustrator need to do a tint of a spot color?

    Where is the cursor color in Illustrator need to do a tint of a spot color? Can not find it or any reference anywhere?

    Create a global sample (swatch spot) and then you can use a cursor to hue.

  • touch of blue screen VS blue color of the key and color selection

    What is the difference between the touch of the blue screen and the color (with the blue color selection) key

    Not much; they are both pretty close without value. Use the Ultra key.

  • Chaning color Illustrator script?

    Hello community! I have about 600 files that I need to change the colors of pale green/dark green to light blue/dark blue, and I need a script for this. Here are a few simple letters divided in two and everything I need is the upper part to be dark blue instead of dark green and the lower part to be light blue instead of the original light green. Is this possible? I use windows 10 as my operating system. Any help is very appreciated!

    Kind regards

    David.

    This code should you select a folder and then loop through all files with. EPS file extensions.
    Note that this script assumes that all colors are exactly the same two Greens as in this sample file you sent.

    You will need to replace the RGB values of the above colors in the marking lines.<- here"="" with="" the="" values="" for="" the="" new="" blue="">

    function ConvertColors() {
    
        /* REPLACE THESE RGB VALUES */
        var topColor = new RGBColor();
    
        topColor.red = 0;    // <- HERE
        topColor.green = 0;    // <- HERE
        topColor.blue = 255;   // <-HERE
    
        var bottomColor = new RGBColor();
    
        bottomColor.red = 255;   // <- HERE
        bottomColor.green = 0;   // <- HERE
        bottomColor.blue = 0;  // <- HERE
    
        /* ~~~~~~~~~~~~~~~~~~~ */
    
        // we'll just use the Red value of the top to identify which color we have
        var oldTopColor = 140;
    
        var dir = Folder.selectDialog("Where?");
        var files = dir.getFiles("*.eps");
    
        // loop through all the files in the selected directory
        for(var f = 0; f < files.length; f++){
            var doc = app.open(files[f]);
    
            // loop through all paths and change the colors based on current fill
            var paths = doc.pathItems;
            for( var i = 0, ii = paths.length; i < ii; i++ ) {
                var curPath = paths[i];
    
                // check the fill color to see if it has the same Red value as the old top color
                if( curPath.fillColor.red == oldTopColor ) {
                    curPath.fillColor = topColor;
                }
                // if not it must be the bottom color
                else {
                    curPath.fillColor = bottomColor;
                }
            }
    
            // close and save the changes
            doc.close(SaveOptions.SAVECHANGES);
        }
    }
    
    ConvertColors();
    

    I hope this helps!

  • Color conversion script?

    I am looking for a way to print the CMYK, RGB, HEX easily, in the text, and possibly another representation of certain colors, I thought I'd write a quick script... easy, right? Apparently not.

    Although I have never used, it seems that Photoshop has the 'SolidColor' object, which has properties for 'cmyk', 'rgb', 'gray' etc... exactly what I need, except I want to do that in Illustrator. Illustrator has the "CMYKColor', 'RGBColor" etc. objects with, from what I can tell, no way to convert any other color mode.

    Then. am I missing something obvious? Or y at - it no way to easily get representations of different a color in artificial intelligence object color mode? I know that the conversion will be different according to the profiles of boards etc., but the UI color picker has the right values that already and, apparently, Photoshop can do it without problem so I'm hoping that I'm missing just something obvious!

    I tried to change the "TypeName" of the Color object, I've seen suggested, but it made no difference (the docs say it is read only).

    The only other options I can think is to create a new document in color mode I want to convert, to create a new color from the existing (which from reading the reference sounds like it will be auto-convertir it in this color mode) read the values of the new color and close the newly created document. But that seems to be a horrible workaround. Or, set up my own conversion function, which seems so horrible (since I thought it would be easy to write quick script!)

    Any input would be appreciated!

    Your code has been very useful Silly-V, convertSampleColor(), it was exactly what I was looking for! If you or anyone is interested, now is my script. Havn't tried a lot and it could probably be cleaned up a bit, but it should work (it does for me with CS6 on OS X).

    It takes all your selected samples and print the CMYK, RGB and HEX (and name if it is a spot color) all these samples selected in a txt file. The txt file is saved with the same name and in the same folder as your Illustrator file. If your Illustrator file is unregistered, it records the txt file in your home directory.

    // Color Modes To Text
    // ===================
    
    // Prints CMYK values, RGB values and HEX value of all selected swatches to a .txt file
    // The .txt file is saved with the same file name and inc the same folder as the .ai file
    // If the .ai file hasn't been saved, the .txt file is saved in the users home directory
    
    main();
    function main()
    {
        var doc = app.activeDocument;
        var selectedSwatches = doc.swatches.getSelected();
    
        if (selectedSwatches.length > 0)
        {
            var text = "";
    
            for (var i = 0; i < selectedSwatches.length; i++)
            {
                var swatch = selectedSwatches[i]
                var color = swatch.color;
    
                // Spot
                if (color.typename == "SpotColor") {
                    text += color.spot.name + "\n";
                    color = color.spot.color;
                }
    
                // CMYK Source
                if (color.typename == "CMYKColor")
                {
                    // CMYK Values
                    text += "C=" + Math.round(color.cyan) + " M=" + Math.round(color.magenta) + " Y=" + Math.round(color.yellow) + " K=" + Math.round(color.black) + "\n";
    
                    // RGB Values
                    var rgb = convertColor("CMYK", "RGB", [Math.round(color.cyan), Math.round(color.magenta), Math.round(color.yellow), Math.round(color.black)]);
                    text += "R=" + Math.floor(rgb[0]) + " G=" + Math.floor(rgb[1]) + " B=" + Math.floor(rgb[2]) + "\n";
    
                    // HEX Values
                    text += rgbToHex(Math.floor(rgb[0]), Math.floor(rgb[1]), Math.floor(rgb[2])) + "\n";
                    text += "\n";
                }
                // RGB Source
                else if (color.typename == "RGBColor")
                {
                    // CMYK Values
                    var cmyk = convertColor("RGB", "CMYK", [Math.round(color.red), Math.round(color.green), Math.round(color.blue)]);
                    text += "C=" + Math.round(cmyk[0]) + " M=" + Math.round(cmyk[1]) + " Y=" + Math.round(cmyk[2]) + " K=" + Math.round(cmyk[3]) + "\n";
    
                    // RGB Values
                    text += "R=" + Math.floor(color.red) + " G=" + Math.floor(color.green) + " B=" + Math.floor(color.blue) + "\n";
    
                    // HEX Values
                    text += rgbToHex(Math.floor(color.red), Math.floor(color.green), Math.floor(color.blue)) + "\n";
                    text += "\n";
                }
            }
            saveTxt(text);
        }
        else {
            alert("No Swatches Selected.");
        }
    }
    
    function convertColor(src, dest, clrArr)
    {
        return app.convertSampleColor(ImageColorSpace[src], clrArr, ImageColorSpace[dest], ColorConvertPurpose.defaultpurpose);
    }
    
    function componentToHex(c)
    {
        var hex = c.toString(16);
        return hex.length == 1 ? "0" + hex : hex;
    }
    
    function rgbToHex(r, g, b)
    {
        return "#" + componentToHex(r) + componentToHex(g) + componentToHex(b);
    }
    
    function saveTxt(txt)
    {
        var name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
        var path = (app.activeDocument.path != "") ? app.activeDocument.path : "~";
    
        var saveFile = new File(path + "/" + name + ".txt");
    
        if(saveFile.exists)
            saveFile.remove();
    
        saveFile.encoding = "UTF8";
        saveFile.open("e", "TEXT");
        saveFile.writeln(txt);
        saveFile.close();
    
        alert("Saved to File:\n" + saveFile.fullName)
    }
    
  • A summary report of comment with possibility to select script page ranges

    Hi all

    I use Adobe Acrobat X Pro on Windows 7.

    I am a newbie to JavaScript, but were using the following script (in fact found this great forum!) to create a report of summary PDF comment.

    It works fine, but I would like to be able to include a line of code to select only specific page ranges (1-40) as I work with a PDF file with 700 pages and you want to create a report summary of the specific chapters. I tried to insert a code for printing specific pages, but when I used Ctrl + Enter to run the script it would bring just to the top of the print window.


    Any help would be appreciated.

    Thank you!

    this.syncAnnotScan ();

    var a = this. getAnnots ({nSortBy:ANSB_Page});

    If (a) {}

    var = new Rep Report();

    Rep.size = 1.8;

    Rep.Color = color.blue;

    rep.writeText ("summary of comments to" + this.documentFileName);

    Rep.Color = color.black;

    rep.writeText("");

    Rep.size = 1.2;

    rep.writeText ("Total of" + a.length + "comments in this file");

    rep.writeText("");

    rep.writeText("");

    Rep.Indent (20);

    var msg = '\200 page %s of %s of % s ';

    for (var i = 0; i <.) Length; i ++) {}

    rep.writeText("");

    rep.indent (20);

    rep.writeText (a [i] .silence);

    Rep.Outdent (20);

    }

    var docReport = rep.open ("commentSummary.pdf");

    docReport.info.Title = "summary of comments for" + this.documentFileName;

    }

    You will need to add more terms or to adjust this one, for example, to reach the beach you specified above (note the page numbers in the code are zero-based):

    If (a [i] .page<80 ||="" a.page="">117) continue;

  • script needs to be repaired

    Hello

    I need prepare a script that needs to check and record the number of files in a folder.

    This is to check the text objects in the document that it contains any color text (not black).

    Problem with my script is that

    1. it doesn't hollow loop all files in the folder, simply tick the first file and ends.

    2. If a document consists of the number more colored text, she wrote each time until the length of the text in color. I want just the one instance of control for a single file.

    #target illustrator
    var inputFolder = Folder.selectDialog ("Select a folder contains '*.eps' files ")
    var Loginfo = new File(inputFolder+"/ScriptLog.txt");
    Loginfo.open("w", "TEXT", "????");
    if (inputFolder != null){
    var fileList = inputFolder.getFiles('*.eps');
    for (var i = 0; i < fileList.length; i++){
        if (fileList[i] instanceof File && fileList[i].hidden == false){
            var docRef = open( fileList[i] )
            writeLog()
            app.activeDocument.close(SaveOptions.DONOTSAVECHANGES)
        }
    }
    }
    Loginfo.close();
    //This function is to check the text objects in the document whether it contains any color text (non black text).
    function writeLog(a){
        var a = app.activeDocument
        if(a.textFrames.length>0){
            for (i = 0; i < a.textFrames.length; i++ ){
                var text = a.textFrames[i].textRange;
                var fiTxtColor = text.fillColor;
                var txtColorType = String (fiTxtColor)
                var txtColorGray = txtColorType.search ('Gray')
                    if(txtColorGray != 1){
                        Loginfo.writeln("File: "+a.name+"   Text not in Black")
                    }
            }
        }
    }
    

    Hope I clearly explained my need.


    Help me on this guys... !!!

    Thanks in advance...

    #target illustrator
    var inputFolder = Folder.selectDialog("Select a folder contains '*.eps' files ");
    var Loginfo = new File(inputFolder + "/ScriptLog.txt");
    Loginfo.open("w", "TEXT", "????");
    if (inputFolder) {
         var fileList = inputFolder.getFiles('*.eps');
         for (var i = 0; i < fileList.length; i++) {
              if (fileList[i] instanceof File && fileList[i].hidden == false) {
                   var doc = app.open(fileList[i]);
                   doc.textFrames.length && writeLog(doc);
                   doc.close(SaveOptions.DONOTSAVECHANGES);
              }
         }
    }
    Loginfo.close();
    
    //This function is to check the text objects in the document whether it contains any color text (non black text).
    function writeLog(a) {
         var i = 0, text = a.textFrames, len = text.length;
         for (; i < len; i++) {
              if (String(text[i].textRange.fillColor).search("Gray") != 1) {
                   Loginfo.writeln("File: " + a.name + "   Text not in Black");
                   return
              }
         }
    }
    

    But isn't a CMYKColor [0, 0, 0, 100] as black?

  • New user - script needs help

    Hi people, new user here.

    Have a text field I want to be hidden until one of the two radio buttons in a group has been selected.  Any help is greatly appreciated.

    Rick S/San Antonio, TX

    You can do this in different ways. Here is an example. Use the following the calculation script customized in your text field that must be hidden or shown:

    var f1 = this.getField("Group1");
    var shouldBeVisible = (f1.value != "Off");
    event.target.display = shouldBeVisible ? display.visible : display.hidden;
    

    This can be shortened a bit, but the shorter code is not necessarily more readable. If you have problems to understand what is happening here, please see the core JavaScript language syntax. What you need to know, is that a group of radio buttons with no selection will report 'Off' as its value. If the field should be visible when the Group of radio buttons is not set to 'Off '. In this case, we set the event.target.display property (you can find out what it means in the Acrobat JavaScript API documentation: Acrobat SDK Documentation DC: event.target ) display.visible or in the other case display.hidden (once again, it details in the documentation of the API).

  • Improved script needed

    Hello world

    I hope someone can help me improve my javascript.

    I currently have a script which (inserted below), when to run the selected text, the text of the excerpts, it splits and apply an object style. It works fine but leaves paragraph breaks and forced line break hanging out that I really do not have. See the images inserted to my start state, the current results and the result finally preferred.

    Anyone know how I can achieve this? I'm not a scripter of experience at all, so I don't know where to start!

    Many thanks in advance,

    Lewis

    if (app.selection.length == 1 && app.selection[0].hasOwnProperty("baseline") && app.selection[0].length > 1) 
    { 
        mObjSt = app.activeDocument.objectStyles.item("Colour Label Grey"); 
        app.selection[0].insertionPoints[0].contents = "\r"; 
        app.findGrepPreferences = app.changeGrepPreferences = null; 
        app.findGrepPreferences.findWhat = "  (\\u)(?=~s)"; 
        app.changeGrepPreferences.changeTo = "\\r\$1"; 
        app.selection[0].changeGrep(); 
        app.findGrepPreferences.findWhat = "\\n\\n\\r"; 
        app.changeGrepPreferences.changeTo = ""; 
        app.selection[0].changeGrep(); 
        app.findGrepPreferences.findWhat = ", "; 
        app.changeGrepPreferences.changeTo = ""; 
        app.selection[0].changeGrep(); 
        p = app.selection[0].parentTextFrames[0]; 
        lh = (p.lines[-1].baseline - p.lines[0].baseline) / (p.lines.length-1); 
        top = app.selection[0].lines[0].baseline - lh; 
        while (app.selection[0].length > 0) 
         { 
          f = app.activeDocument.layoutWindows[0].activePage.textFrames.add ({geometricBounds:[top, p.geometricBounds[3]+2*lh, top+lh, 2*(lh+p.geometricBounds[3])-p.geometricBounds[1] ]}); 
          app.selection[0].lines[0].move (LocationOptions.AFTER, f.texts[0]); 
          top += lh; 
          f.appliedObjectStyle = mObjSt; 
         } 
         p.characters[-1].contents = "";
        
    } else 
    alert ("please select some text to shred"); 
    if (f.lines[-1].contents.indexOf("\r") != -1) f.characters[-1].contents = ""; 
    
    

    Screen Shot 2015-11-24 at 20.26.49.png

    Screen Shot 2015-11-24 at 20.29.21.png

    Screen Shot 2015-11-24 at 20.29.25.png

    This should be a good start.

    Note there is a problem with the style of the object and you need to lower the text frame General Medallion high / low the style options (I don't have your policy but this is what it looks like to me).

    // By Trevor https://forums.adobe.com/message/8214750#8214750
    // http://creative-scripts.com
    app.doScript(splitLines, undefined ,undefined, UndoModes.ENTIRE_SCRIPT);
    function splitLines(){
      var mObjSt, t, lh, f, top, selct, pp, left, right, p1, tempFrame;
      selct = app.selection.length == 1 && app.selection[0];
      if (selct && selct.hasOwnProperty("baseline") && selct.length > 1)
        {
            p = selct.parentTextFrames[0];
            pp = p.parentPage;
            lh = (p.lines[-1].baseline - p.lines[0].baseline) / (p.lines.length-1);
            top = selct.characters[0].baseline - lh;
            left = p.geometricBounds[3]+2*lh;
            right = 2*(lh+p.geometricBounds[3])-p.geometricBounds[1];
            tempFrame = pp.textFrames.add({geometricBounds: pp.bounds, textWrapPreferences:{textWrapMode:TextWrapModes.NONE}, textFramePreferences:{ignoreWrap: true}});
            selct.move(LocationOptions.AFTER, tempFrame.texts[0]);
            t = tempFrame.parentStory;
            mObjSt = app.activeDocument.objectStyles.item("Colour Label Grey");
            app.findGrepPreferences = app.changeGrepPreferences = null;
            app.findGrepPreferences.findWhat = "  (\\u)(?=~s)";
            app.changeGrepPreferences.changeTo = "\\r\$1";
            t.changeGrep();
            app.findGrepPreferences.findWhat = "\\n";
            app.changeGrepPreferences.changeTo = "\r";
            t.changeGrep();
            app.findGrepPreferences.findWhat = ", ";
            app.changeGrepPreferences.changeTo = "\\r";   // change this as it looked like a mistake
            t.changeGrep();
            app.findGrepPreferences.findWhat = "\\r";
            app.changeGrepPreferences.changeTo = "";
            while ((p1 = t.paragraphs[0]).isValid) {
                if (p1.characters[0].contents == "\r") {
                    p1.remove();
                    continue;
                }
                p1.changeGrep();
                f = pp.textFrames.add ({geometricBounds:[top, left, top+lh, right]});
                p1.move (LocationOptions.AFTER, f.texts[0]);
                top += lh;
                f.appliedObjectStyle = mObjSt;
            }
            tempFrame.remove();
        } else
        alert ("please select some text to shred");
    }
    

    HTH and don't forget to mark it as correct

    Trevor

    Custom scripts & Services | Creative - Scripts.com

  • Export of the correct Hex colors via script

    Hi all

    I need to export the fillColor of a paragraph via script style.

    I can get the fillColor of the paragraph style property and can also convert CMYK Hex. However, I realize that color in InDesign values in some color space of the document uses.

    My question is, is there a native API to convert the values of color for a web safe color value? If this is not the case, how can I go on the correspondences between colors?

    In addition, I see that Adobe knows internally to convert it to a good hex color (attached screenshot - note the color property in the export marking side). If I can't use some native API, is there a way to access the text in this pane?

    Screen Shot 2014-12-15 at 7.25.20 PM.png

    Thank you all in advance!

    Win! It worked!

    Here is the complete solution-

    Assuming that the original color is stored in a variable named color :

    var color = passedInColor; //the original color that we wish to convert.
    
    // Create a temporary color instance that we'll use to extract updated colorValues.
    var scratchColor = workingDoc.colors.add({
                             model: color.model,
                             space: color.space,
                             colorValue: color.colorValue
                        });
    
    // Now, we force adobe's internal color conversion mechanism to trigger by changing the scratchColor's color space.
    scratchColor.space = ColorSpace.RGB;
    var updatedValues = scratchColor.colorValue; // Updated values now has the properly mapped and converted RGB values.
    // You may need to round off the R, G and B values in the updatedValues array.
    // And that's it!
    

    Why am I not surprised that she should be a hacky autour work? * sigh *. It was so so so frustrating to work on this platform! I hope adobe gets his act together!

  • Menu color by Script

    Hi Experts,

    I'm trying to create a Menu ID that contains submenus, and I want to apply the color for this menu. It can be done manually by Edit-> Menus...-> by selecting the menu, next to this menu, we can change the color, is to enter into the menu. But I did not have to do with Automation by using google Javascript.I a lot to achieve. But I can not find, even in this forum too. That's why I ask this question to the expert ID. And I add the menu, have submenus (view > symbol,) I can able to add colors manually. Other menu items that does not submenus, I can't able to apply colors manually too... You can guide me expert!

    I tried the codes below. But I can not find the color property.

    var menuName = app.menuActions.itemByID (6146);

    var x = NomMenu;

    Alert (x.Properties);

    var y = x.properties;

    Alert (y.toSource ());

    Output:

    error.png

    Thank you and best regards,

    Velprakash.

    I don't think it's available via the script. Submit a feature request...

  • color fusion scripts

    I need to change the RGB values (imported from the word) of specific CMYK values in Indesign (this isn't a straight swop) so I need a script or a similar plug-in that allows me the contribution of color to CMYK values, so they change automatically... the doc I work on is huge and im importing from a file word several times so I need to save time!

    Can someone help me?

    Thank you!

    Hi baby.

    Please try the JS code below.

    var myIDOc = app.activeDocument;
    var mySwatch = myIDOc.swatches;
    for (j=mySwatch.length-1; j>=0; j--){
        try{
             if(mySwatch[j].space ==ColorSpace.RGB){
                 if(mySwatch[j].name=="Word_R122_G75_B153"){
                    mySwatch[j].remove("C=48 M=72 Y=0 K=0");
                    }
                else if(mySwatch[j].name=="Word_R255_G0_B255"){
                    mySwatch[j].remove("C=0 M=100 Y=0 K=0");
                    }
                else if(mySwatch[j].name=="Word_R0_G0_B255"){
                    mySwatch[j].remove("C=100 M=0 Y=0 K=0");
                    }
                else if(mySwatch[j].name=="Word_R0_G0_B0"){
                    mySwatch[j].remove("Black");
                    }
                else if(mySwatch[j].name=="Word_R234_G229_B255"){
                    mySwatch[j].remove("C=8 M=10 Y=0 K=0");
                    }
                 }
             }catch(e){}
         }
    

    THX,

    csm_phil

  • Script needed for radio button/date field

    Hello

    I am currently using Adobe Lifecycle Designer ES.  I have a form that contains two radio buttons (each dependant on the other).  One of the option buttons, if it is enabled, has a date field that I have needed to fill if this option button is selected.  I suppose that this could be done with an "if" statement, but I'm not very good at the code and I was wondering if anyone can help?  Thank you.

    Hello

    I have an example here: http://assure.ly/hxHupW.

    You can change the required property using script.

    To make a field required, you set the property to "error". Considering that, to make an optional field, you set the property to "disabled".

    If one considers that the value of the radiobutton that you want to use to define the mandatory datefield is '1', then the code following JavaScript in the click event of the radiobutton exclusion group:

    if (this.rawValue == 1)
    {
         datefield.mandatory = "error";
    }
    else
    
    {
         datefield.mandatory = "disabled";
    }
    

    Hope that helps,

    Niall

Maybe you are looking for

  • problem i tunes update

    So I was assigned with this bug on ios 10 installation and I read what I tunes it will recover but now I tunes does not recognize my phone! What should I do I'm always stuck with i tunes logo on my i phone

  • Toshiba still 8 Micro USB does not, does not charge

    I have installed Nokia PC Suite on my Toshiba Encore 8 tablet and connected my laptop Nokia C1 via micro-USB on my tablet. Since then, my Toshiba still doesn't recognize not the USB port, two usb devices or, more important, for the load. My tablet is

  • Crash of Webkit in Safari since 9.1 update

    I get a lot of crash since the last round of updates (e.g. Safari 9.1) 'content Web Safari close unexpectedly' and 'a problem several times occurred with www.website.com Any ideas? Crash Log: Process: com.apple.WebKit.WebContent [1235] Path: /System/

  • HARD SMART reallocated sector count 269, reallocated disk number of events 20

    I have a Toshiba MK6476GSXN HD about 2 years on my laptop (my computer only). Recently, I plugged a defective SD/USB converter, which caused all kinds of startup failures.Before I identified the converter failed, I thought that my HD was dying. I run

  • Libretto W100 - DOWNLOAD virtual keyboard Toshiba

    Where can I download software/driver keyboard Toshiba for booklet?