Spry: Conditionally Fields

Hi,
I am using DW CS3 to create spry fields.
I have a situation in which I want one field to become
required based upon the value of another field. In my page I added
the following:
var chkOtherValid = function(value, options){
var sel = document.getElementById("Chk");
var Chk_value = sel.options[sel.selectedIndex].value;
if ((Chk_value == 'OTH') && (value == '')) {
return false;
return true;
var chkOtherValid = new
Spry.Widget.ValidationTextField("spryChkOther", "custom",
{isRequired:false});
Within my form I have the following:
<span id="spryChkOther">
<input type="text" name="ChkOth" size="23" maxlength="15"
onblur="this.value=this.value.toUpperCase();" />
<span class="textfieldRequiredMsg">A value is
required.</
span></span> </td>
</tr>
My problem is that I am no getting the expected result.
Can someone please help me.
Thank You.
Regards,
Al

>>
if ((Chk_value == 'OTH') && (value == '')) {
>>
I´m sure this fails because you´re using an
&& (means AND) comparison here, though the selected value
can only match one of both conditions. Reckon you´ll rather
have to use OR instead -- means:
if ((Chk_value == 'OTH') || (value == '')) {

Similar Messages

  • Chart report Condition fields and Data fields

    Hi all,
    i have tried chart report by adding two condion fields and one data field, the report is more meaning full in this scenario. the first condition field is taken as x-axis, the 2nd condition fields is taken as legend.
    while adding more condition fields and data fields, i feel its not showing meaningfull data.
    can anyone explain how the condition fields and data fileds are manipulated by crystal report.
    i am using CR XI R2 Server.
    Thanks
    Padmanaban V

    i am using Crystal Report XI R2 RAS Embedded in my server.
    as we can add any number condition fields programatically using the method
    ConditionField.Add(FieldObj), i would like to know how these fields are manipulated internally by the RAS server.
    that means, what is the significance of condition fieldobject 1, condition fieldobject 2,condition fieldobject 3 etc...
    if i add more than two condition fields , RAS Chart Report always returns 0 as legend value for all legends.
    Thanks in advance
    Regards,
    Padmanaban V
    Edited by: Padmanaban Viswanathan on Dec 22, 2008 9:53 AM

  • I have created a form in DW 5.0 using spry text fields. I am wondering what I did wrong to make the

    I have created a form in DW 5.0 using spry text fields. I am wondering what I did wrong to make the form fields show text?
    Thank you.

    Thanks again. There's one other thing I wanted to achieve here. I need the date format to be displayed like "dd/mm/yyyy" and not like it's doing by default at the moment (i.e. mm/dd/yyyy)
    I don't have any knowledge of jQuery but had a go anyway at trying to fix this using this link http://api.jqueryui.com/datepicker/ as aid to try adjust my code. Obviously I couldn't get it to work so far...  So I'm looking for a little bit of help from anyone who knows a bit of jQuery.
    Here's the original default code (just the stuff that goes in the 'head' of the page):
    <script>
      $(function() {
          $( "#datepicker" ).datepicker();
    </script>
    And here's what I tried adding to make it work:
    <script>
      $(function() {
          $( "#datepicker" ).datepicker();
          $.datepicker.formatDate( "dd/mm/yyyy" );
    </script>
    Obviously I tried other combinations including .parseDate instead of .formatDate etc etc none of which worked.
    I'm wondering whether the extra code should perhaps go inside where the XXs are - $( "#datepicker" ).datepicker(XX)
    Anyway, if somebody could help me out that would be great. Cheers!

  • Can I copy a form with spry text fields?

    I have two forms that are almost identical with the exception of a few fields. Instead of completely redoing the 2nd form I would like to just save the document in dreamweaver with a new name and change/add the fields I need. I've used spry text fields though. Will I have any issues with just copying and then changing this form as far as the spry files are concerned or am I just better off creating a whole new form?

    Keep in mind that form field names need to exactly match your form-processing script. 
    Spry was abandoned by Adobe in late 2012. Since I don't use Spry for anything, I can't honestly say if the form validation will continue to work or not.  I much prefer the ease of HTML5 form validation alone or with jQuery for older browsers.
    HTML5 Form with jQuery Validation
    So my answer is rebuild with HTML5 forms.
    Nancy O.

  • How to: Make Shipping Condition field required in Tx. VT01N

    Hi everyone. I need to make the Shipping Condition field required in the transsaction VT01N Create Shipment.
    I don't know how to do this, can somebody help me with this issue???
    Thanks for your help!

    Hi Chemo,
    As far i undestand, you want to calculate freigth cost using transportation.
    To do this, you need to do some settings at that point to achieve that, please follow the link to configuration guide:
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LETRA/SDTRA.pdf
    On functional side (after configuration), you´ll need to create the shippment cost document on VI01 transaction, there you can see all the cost associated to Shipping.
    After that transfer it to MM using T-code VI02, its needed.
    I Hope this help you,
    Regards,
    RP

  • CRM Pricing - BADI to Populate pricing conditions fields

    Hello All,
    We have CRM 5.0 installed in our customer.
    We are facing problems when we tried to replicate the pricing  from R/3.
    Basically, all Brazilian formulas we have in R/3 are Z. We tried to replicate them in JAVA (IPC) with no success. At this time, it is imposible for us to move to the standard because of the decision of the business.
    We are trying to find one BADI where we can populate all the pricing conditions retrieved via RFC from R/3. Unfortunatelly we don't have good luck with this.
    Our idea is to use this BADI to call R/3 and retrieve the conditions needed, and then populate the CRM pricing fields..
    Could you please help us? Do you have any other idea to solve this issue?
    This is very critical for us.
    Thanks in advance.
    Martin

    Hi Ntk,
    Thanks for your reply.
    I tried to search in se18. I found one BADI that runs when users enter new materials or changes the quantity of the sales order.
    This one  does not help us too much, because when you go to conditions tab (into CRMD_ORDER or via ICWEB) all conditions are redetermined with the pricing determined in IPC.
    We want to fill the conditions of the sales orders or the sales quotations at running time. In the BADI we would use the function module RFC SD_SALESDOCUMENT_CREATE (in simulation mode) in R/3 and retrieve all conditions fields and then populate the pricing conditions in CRM.
    Do you know any BADI with this behaviour? Or another similar?
    THANKS!

  • Storage Condition field in Material Master Grayed Out.

    Hi folks,
    We are trying to use the Storage Condition field in a Material Master Plant Data/ Storage Location View. However I noticed the filed is grayed Out.
    Then I looked at the Configuration in "Field Selection for Data Screen**" and the selection group 87 which is already selected as Optional which means it should let me pick the Storage Condition field.
    **(SPRO->Log Gen->Mat Master->Filed Selection->Maintain Field Selection for Data Screen.)
    Please note,  I have already created Storage Conditions in SPRO. I am not trying to create new conditions now. I am just not able to pick one and enter it while creating or updating a Material Master.
    your input is appreciated. Thanks in advance.

    where exactly you are looking at that you are so certain that is is optional?
    In OMSR find your field selection group, then click the button on the right to the field selection group to see in which field reference it is used..
    You can probably see many many field references.
    There is e.g. a field reference for the transaction, at least for transaction MM03 your field selection should be display only.
    there is a field reference for your material type,
    there is a field reference for your industry (M, C etc ... the indicator you have to enter in MM01 initial screen)
    there is a field reference for your material type,
    Are all references (except MM03) are set to optional, or do you see references with display only among them?

  • Spry text fields "invisible" on ie6/ie7

    Hi, Attached is a screen shot of how spry text fields look in their initial state under ie6 and ie7 on a project at www.printingcommunication.com/wa/seattle/contact.html
    They are "invisible".
    I'm using Dreamweaver CS4 and spry 1.6.1. I have not made any modifications to the default spry yet. This works ok on every other browser. Does any one know what modifications I need to make to have these text fields show ok under IE6/IE7? Thanks...

    With all associated files (including the apparently interfering css file) linked, open the page in Dreamweaver.
    Make sure your CSS Styles Panel is open;
    select "Current" on that panel to get a look at the styles that are in play.
    In the bottom of the Styles panel, select the asterisk-asterisk-downarrow icon at the bottom left, so that you see only the styles in use.
    Then (if you have the option) select the right-hand cascade button...it looks like a little flight of stairs.
    Okay, in Design View, click on one of your input fields. Leave the cursor there and look over at the CSS Styles Panel. You will see the cascade of styles that are affecting that item. The lowest-most will be the most specific, but all that affect your item will show in a list.
    Make sure the bottom of the styles panel is opened up...you may have to drag it open if you haven't used it; close other panels below to make more room.
    You will see there all the attributes that have been defined for the particular style you are working with.
    This should help you to focus on what is exactly going on. The form tags come with their own styling, so you'll have to look for styles that explicitly state something like input {border: none;} You may need to step up the list (pausing to check the attributes list) to find the affecting style.
    By the same token, you can alter the styling as you wish, for instance:
    <style type="text/css">
    <!--
    input {
         border: solid 1px red;
    -->
    </style>
    Of course, if you are using Spry Validation Text Fields, you might not want to make them red, as I have done! They will have their own set of colors.
    I hope some of this helps your situation. If anything, it will let you get "up close and personal" with your CSS Styles Panel
    Z

  • Condition field in XL Reporter Get Other Data function

    I want to use the XL Reporter "Get Other Data" function to get data from a file not in the current Business Partner dimension  BPA.  Using the SalesPerson code SlpCode, I want to get the SalesPerson Name, SlpName. What is the value for the condition field to restrict the retrieval to just the one record that matches the SlpCode in the BPA dimension?  I've tried ocrd.SlpCode=oslp.SlpCode.  I've tried SlpCode=oslp.SlpCode. But I either get all the names in the Salesperson file or I get some type of syntax error.

    Jim,
    When you say I should be able to pass a parameter, do you mean while using the XLR "Get other data" function?  I thought that's what I was doing when I filled out the Get other data screen with the userid, password, then I specified the OSLP table, requesting SlpName in the Fields section, and then in Condition, I specified OCRD.SlpCode = OSLP.SlpCode.   When the report ran, I got a "#ixGetData error: The multi-part identifier "OCRD.SlpCode" could not be bound".   I tried substituting the BPA dimension qualifier, ie: BPA.SlpCode, but got the same error.
    If I removed the initial qualifier in the Condition field, ie: SlpCode = OCRD.SlpCode, when I ran the report I got ALL Salespersons names, not just the one that matched the SlpCode field on the current Business Partner line.

  • Transportation Group and Shipping condition fields in Route determination

    Hello Guys,
    Please, I heard that if I leave Transportation Group and Shipping conditions field empty Route determination would consider whatever value I put in Material/Custumer Master.
    But the determination just happen if I put the exact value in either the determination and the Material Master for Transportation Group field for example.
    Have you ever determined Routes leaving the fields empty?
    Thank you,
    Regards,

    Hi,
    Those fields Transportation Group and Shipping conditions available in Route Determination are essential to trigger the correct route in Sales Order level.
    If blank the available routes need to be picked manually at Sales Order level.
    Kindly check .
    Regards,
    SRK

  • Using SUMIFS on iPad Numbers has anyone had trouble using the keypad relational symbols in the "conditions" field?

    The iPad Numbers has a very nice data entry keyboard for expressing conditions.  They have the usual =, <, > but also have the single symbol version of >=, <= and <> (as an equals with a slash through it), however, if you try to use these keypad keys in the conditions field of the SUMIFS, it returns a syntax error.  After seeing some examples of Numbers '09 I discovered I had to express a relation inside double quotes, " ", which means the text keyboard is displayed and the very nice data entry keyboard is gone along with the nice symbols.  Has anyone seen this and am I doing something wrong or is this another bug?  Thanks.

    The xxxIF functions have (for as long as I have used them) required a text string as the argument unless it was equal to a value of a cell, with no logical operators. so it is not something new, its been that way for decades and I personally think Apple might have done it differently if they didnt have to maintain compatiability with older spreadsheet programs.
    i.e. not a bug, ensures backward compatability.
    Jason

  • Basic Conditional Fields?

    I need to find a basic tutorial on how to do conditional fields in an interactive form. Specifically, I need to make an HR form where I can have a number of different job categories, with a different set of questions and criteria for each category that appears only when a category is selected. I have ES3 but I can't find anything online that starts at the beginning of the process. Can anyone help?

    Depending on your needs, you might be able to use action builders
    http://blogs.adobe.com/livecyclelane/2009/10/building_actions_in_livecycle_designer.html
    Mark

  • Conditional fields / formatting an equipment checklist

    I am trying to create an equipment checklist form for our video production company.  I would like to begin with a drop-list of Equipment A, B or C.  If someone selects Equipment A, then a new form would appear with a checklist and additional optional equipment that needs to be taken along with Equipment A.  The rest of the form would function this same way with other categories of equipment (cameras, lighting, sound, etc.).  Ideally, one of our producers would go online and select the necessary equipment for a particular shoot/project, print it out, and hand it to an associate to pull together for the shoot.   With the conditional fields, the form would only print the equipment that was selected from the form.  I'm trying to avoid having to print a giant list of ALL of our equipment when a shoot may only require a few items.  Is this doable?

    Sorry, this is currently not possible. You can vote for the idea here : http://forums.adobe.com/ideas/1045
    Gen

  • Spry Text Field Custom Validation Patern PHP

    I am using PHP and I'm not sure but I believe I may be unable
    to create a custom validation pattern. What I would like to do; is
    create a user pattern that forces Alpha and Numeric characters
    only, with no spaces for use in Spry Text Fields for User Names and
    Passwords. Has anyone got any advice?

    Sorry :) This was a case of RTFM. I have found what Ineeded
    in the documentation. I have listed below what I was looking for,
    just in case anyone else is looking for it. Not quite what I was
    hoping for, but better than a slap in the face with a wet kipper.
    "0"
    Whole numbers between 0 and 9
    "A"
    Uppercase alphabetic characters
    "a"
    Lowercase alphabetic characters
    "B"; "b"
    Case-insensitive alphabetic characters
    "X"
    Uppercase alphanumeric characters
    "x"
    Lowercase alphanumeric characters
    "Y"; "y"
    Case-insensitive alphanumeric characters
    Any character

  • Conditional Field and Autocomplete

    Hi guys,
    first of all, I'm a system analyst and I work with .NET framework, I'm not a DBA. So I need a help that I guess is simple. I'm creating a table in Oracle express 10g where one of the fields will have its value from a combination of values of two others fields, in the other words, this will be a conditional field.
    Any body know where I can found an example of this implementation?
    Beforehand, my thank you very much

    user10437322 wrote:
    but as I'm not a DBA and I really don't know how to start to work with PL/SQL, do you have some link with samples about that?I know DBAs that know very little about PL/SQL. PL/SQL is a proper procedural language.. not much different than Pascal or Visual Basic or C.
    The big difference is that it is a server side language. And that PL/SQL is in fact 2 separate languages.. PL is the Programming Logic language. It allows you to write native SQL (different language) inside the PL source code, using PL variables... in other words, a seamless and tight integration of the SQL language inside the PL language.
    Thus no need to step out of PL source code and use a database interface/class/whatever to communicate via SQL with the database. You mix your native SQL code directly with PL source code and the PL/SQL compiler figures out the rest (creating cursors, binding variables, etc). Very powerful... and as it is so close to the SQL engine, it is the fastest way to crunch database data.
    So it has very little to do with DBA'ing and everything to do with writing applications. We write full blown (and pretty complex) applications only in PL/SQL, complete with a web interface. Not a single line of code in another language needed. So do not throw PL/SQL into the DBA pigeon hole as it fits rather badly.
    The [Oracle® Database PL/SQL User Guide and Reference|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/toc.htm] (10g Release 2) is a good place to start. If you're on 11g (or even 9i), you can find the relevant guide via http://tahiti.oracle.com
    PL/SQL is a fairly simplistic language. It does not deal with client interaction (reading keyboard and mouse input). It runs inside a VM that is isolated from the o/s - so PL/SQL code written on a mainframe database will execute happily in a Windows Oracle database. Thus no need to deal with different kernels, issues like big endian vs. little endian and so on.
    There are numerous beginner guides to PL/SQL available. Some of them probably good and some not so good...
    Bottom line is that if you are a good programmer, then you will find PL/SQL easy to use and write equally good code in PL/SQL as you would in any other language. It is not the language that is important and dictate the quality of the code, but the programmer.

Maybe you are looking for