Number of fields with If then statement

Greetings,

I use Adobe Acrobat Pro XI.  "On a form I created, there are fields named"RLRow1", RLRow2," RLRow3 "etc all the way up to RLRow13, assuming that there are 13 lines of data that need to be registered.  The staff is required to enter the letter 'L' or the letter 'R' in these areas.  I have already added the Custom Format Script of ' event.value = event.value.toUpperCase (); "to convert uppercase text.  On this form, I have a field called "Total L" and a field called 'R Total'.  I would like to add a javascript function which counts the number of 'L' RLRow1, RLRow2 etc and put the total in the field 'Total L '.  Likewised, I would like to add a javascript function that counts the number of 'R' RLRow1, RLRow2 etc. and puts this total in the field 'Total R '.  I guess it would be some type of instruction If Then, but I'm not familiar enough with Javascript.  I hope that's not too complicated.  Can anyone help with this?

First, if these are the only values allowed then use a drop-down list instead of a text field, but never mind.

You can use the following code in the custom calculation of the field 'Total L' script. It is easily adjusted for the field 'Total R' thus:

var total = 0;
for (var i=1; i<=13; i++) {
    if (this.getField("RLRow"+i).valueAsString=="L")
        total++;
}
event.value = total;

Tags: Acrobat

Similar Questions

  • Adding values of mulitple tables in a loop with if then statement

    So I a table set in place and need to add the hours of specific activities.

    I have Activity() as an array of drop-down boxes with things like ' holiday, regular, vacation, etc.

    Monday(), Tuesday() etc., are numeric field berries.

    and I try totals of population since the differnet activities.

    Use of Java like this and it doesn't seem to work:

    for (var i = 0; i < 12; i ++)

    {

    If (activity [i] .rawValue = 'Holiday') {}

    $. Monday = value [i] .value + Tuesday [i] .value + Wednesday [i] .value + Thursday [i] .value Friday [i] .value

    }

    }

    Am I missing something here?

    Hello

    Use FormCalc (not JavaScript). I think that you have a 'total' field for each week (i.e. total and Monday are brothers and sisters?). If so

    //////////////////////////////////////////////////////////////////////

    If ( == 'Holiday' activity) can

    $ = Sum (Monday, Tuesday, Wednesday, Thursday, Friday)

    on the other

    $ = 0

    endif

    //////////////////////////////////////////////////////////////////////

    If you are adding up for several weeks (weekly).

    If (activity == 'Holiday') then

    $ = Sum (Monday, Tuesday, Wednesday, week [*] [*] the week of the week [*] [*] the week.) Thursday, the week [*]. Friday)

    on the other

    $ = 0

    endif

    where each group of days is encapsulated in a subform named "week".

    //////////////////////////////////////////////////////////////////////

    Finally, it uses the values "boundItem" NOT the displayed value. So:

    If ( == 'Holiday' activity) can

    works only if the value of boundItem is used. Look in the BindingTab for the drop-down list to understand and configure certain boundItem values. They are strings and use "" when you reference strings. So 1 is better referenced as '1' as in

    If ( == activity '1') then

    //////////////////////////////////////////////////////////////////////

    Finally, if needed of statements == (do not use a single =).

    I hope this helps!

    Stephen

  • Update from the field with consecutive number according to the number of entries

    Hello

    I need to update a field with a consecutive number according to the number of lines where the entries are made which go hand in hand. What it means:
    I have
    SYSAUSPR AREA SYSGEBIET TYP RANG
    182925 600003 4 1 PERSON
    1 600004 4 1 PERSON
    2 600004 4 1 PERSON
    3 600004 4 1 PERSON
    17 600004 4 1 PERSON
    18 600022 4 1 PERSON
    182864 600079 4 1 PERSON
    184082 600092 4 1 PERSON
    182774 600143 4 1 PERSON
    PERSON 183237 600165 4 1
    NO 7 600169 4 1
    8 600169 4 1 PEOPLE
    9 600169 4 1 PERSON
    12 600169 4 1 PEOPLE
    14 600169 4 1 PERSON
    184309 600179 4 1 PERSON
    23 600182 4 1 PERSON

    I need to change column "RANK" of 1 the number of records that have the same id in the "SYSGEBIET" column (from this example with 600) so that it looks like

    SYSAUSPR AREA SYSGEBIET TYP RANG
    182925 600003 4 1 PERSON
    1. NOBODY 600004 4 * 1 *.
    2. PERSON 600004 4 * 2 *.
    3. PERSON 600004 4 * 3 *.
    17. NO 600004 4 * 4 *.
    18. NO 600022 4 * 1 *.

    Does anyone has an idea how to solve this problem in an update statement?
    Thanks for your help
    Best regards
    Carsten
    SQL> select  *
      2    from  tbl
      3  /
    
      SYSAUSPR GEBIET  SYSGEBIET        TYP       RANG
    ---------- ------ ---------- ---------- ----------
             1 PERSON     600004          4          1
             2 PERSON     600004          4          1
             3 PERSON     600004          4          1
            17 PERSON     600004          4          1
            18 PERSON     600022          4          1
        182864 PERSON     600079          4          1
        184082 PERSON     600092          4          1
        182774 PERSON     600143          4          1
        183237 PERSON     600165          4          1
             7 PERSON     600169          4          1
             8 PERSON     600169          4          1
    
      SYSAUSPR GEBIET  SYSGEBIET        TYP       RANG
    ---------- ------ ---------- ---------- ----------
             9 PERSON     600169          4          1
            12 PERSON     600169          4          1
            14 PERSON     600169          4          1
        184309 PERSON     600179          4          1
            23 PERSON     600182          4          1
    
    16 rows selected.
    
    merge
      into tbl t
      using (
             select  sysgebiet,
                     sysauspr,
                     row_number() over(partition by sysgebiet order by sysauspr) rang
               from  tbl
               where sysgebiet like '600%'
            ) u
        on (
                u.sysgebiet = t.sysgebiet
            and
                u.sysauspr = t.sysauspr
           )
      when matched
        then update set t.rang = u.rang
    /
    
    16 rows merged.
    
    SQL> select  *
      2    from  tbl
      3  /
    
      SYSAUSPR GEBIET  SYSGEBIET        TYP       RANG
    ---------- ------ ---------- ---------- ----------
             1 PERSON     600004          4          1
             2 PERSON     600004          4          2
             3 PERSON     600004          4          3
            17 PERSON     600004          4          4
            18 PERSON     600022          4          1
        182864 PERSON     600079          4          1
        184082 PERSON     600092          4          1
        182774 PERSON     600143          4          1
        183237 PERSON     600165          4          1
             7 PERSON     600169          4          1
             8 PERSON     600169          4          2
    
      SYSAUSPR GEBIET  SYSGEBIET        TYP       RANG
    ---------- ------ ---------- ---------- ----------
             9 PERSON     600169          4          3
            12 PERSON     600169          4          4
            14 PERSON     600169          4          5
        184309 PERSON     600179          4          1
            23 PERSON     600182          4          1
    
    16 rows selected.
    
    SQL> 
    

    SY.

  • Tab automatically when you reach the end of a field with the number of limited characters

    Hello!

    Is it possible to activate an automatic tab behavior when the user reaches the end of a field with the number of limited characters?

    I'd like the cursor to move to the next field in tab order automatically.

    Possible?

    Thanks for the tips!

    Marcos

    Hello

    What happens if you tried something like the following example? This works using formCalc on the change event for the user's domain is currently typing in:

    fullCount var = 3
    var currentString = xfa.event.newText
    If (Len (currentString) > = fullCount) then
    xfa.host.setFocus ("TextField2")
    endif

    Or, if you prefer javaScript:

    fullCount var = 3;
    var currentString = xfa.event.newText;
    If (currentString.length > = fullCount) {}
    xfa.host.setFocus ("TextField2");
    }

    These work very well.

    I hope this helps!

    Stephen

  • New on Adobe need help with an if then statement

    Hi, I really like what ADOBE Pro 9 can do with forms and neat and everything is included.

    I'm having a problem trying to understand an if then statement for one of my forms and how to make it executable.

    Here is what I have

    I.          Cigna Medical                                           

                (10)       single                                     $  44.00

                (11)       Employee & Child (ren)              $  82.00          

                (12)       Employee & Spouse                 $  99.00                      

                (13)       Family                                     $125.00                      

                (14)       Decline Coverage                         $0.00          Choice: _        Amount: $_

    An employee will be choice an optiopn 10-14 and but that number of choices. After I am about to fill with this number.

    For instnace, if an employee takes option 11, choice: 11 and amount: $ 44.00

    I put the options in a menu drop-down. The drop down menu is titled CignaMedical and Amount_1 title for amount: $_ and I made a text box.  I put this code: if (this.getField("CignaMedical").value == '10') {}
    Amount_1 = 44.00} tab calculation of properties for the Amount_1 of text box on the custom calculation script tab.

    Any help is greatly appreciate

    Yes, you can use an if-else if construction. Something like that (I got the first part because we reuse it):

    CignaMedical = this.getField("CignaMedical").value;

    If (CignaMedical == '10') {}

    44.00 = Event.Value;

    } Else if (CignaMedical == "11") {}

    Event.Value = 82.00;

    } Else if (CignaMedical == '12') {}

    99.00 = Event.Value;

    }

    etc.

  • Text field with AutoComplete do not store Item Value for Cascading LOV

    Hello

    I have created a form to the APEX 4.2, and two elements on the page have a problem. The first point is a text field with AutoComplete for the PROVIDER. The second element is a list select number that has the PROVIDER as part of waterfall to fill.

    When a user selects one of the values that the field can be seized semiautomatic provider , the value autocomplété should make the selection list produce the numbers respective associated PROVIDER. The problem that I am running is that AutoComplete is not give PROVIDER selection list value is filled.

    For example: if I type 'st' in the PROVIDER field that autocompletes to "steve" is selected, the NUMBER field must interrogate him for the numbers where VENDOR = steve. However, after reviewing the Session State from the PROVIDER element, the contained value is always only "st."



    Here are the settings I have for the field PROVIDER : and NUMBER:

    name.JPGnumber.JPG

    There should be a way to have the value of the seized field semi-automatic to account for what appears after selecting a value, but I don't know what it is. You can provide any help would be appreciated.

    Thank you!

    your query full auto would: select supplier_name | ' ('| supplier_id |') '

    provider AutoComplete onChange, get the supplier_id and then value the selected drop-down list by using this code.

  • Help with the insert statement

    Hello

    I was wondering if someone could help write me a sql statement.

    Here is my table:
    CREATE TABLE "TEMP_INVOICE" 
       ("INVOICE" VARCHAR2(100 BYTE),
         "DATE_OF_DOCUMENT" DATE, 
         "DATE_OF_PAY_DAY" DATE, 
         "D" NUMBER, 
         "K" NUMBER
       );
    Here are the instructions for correct insertion. This time, I posted 2 examples with 2 numbers different otherwise.
    insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k)  values (1000,to_date('01.02.2012','dd.mm.yyyy'),to_date('01.03.2012','dd.mm.yyyy'),5000,0);
     
    insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k)  values (1000,to_date('01.04.2012','dd.mm.yyyy'),'','',1000);
     
    insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k)  values (1000,to_date('01.05.2012','dd.mm.yyyy'),'','',3000);
     
    insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k)  values (1000,to_date('01.06.2012','dd.mm.yyyy'),'','',1000);
    
    insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k)  values (2000,to_date('01.07.2012','dd.mm.yyyy'),to_date('01.09.2012','dd.mm.yyyy'),8000,0);
     
    insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k)  values (2000,to_date('01.10.2012','dd.mm.yyyy'),'','',5000);
     
    insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k)  values (2000,to_date('01.11.2012','dd.mm.yyyy'),'','',2000);
     
    insert into temp_invoice (invoice,DATE_OF_DOCUMENT,DATE_OF_PAY_DAY,d,k)  values (2000,to_date('01.12.2012','dd.mm.yyyy'),'','',1000);
    I want to do is make an insert allows you to table another call is MADE:
    CREATE TABLE "INVOICE" 
       ("INVOICE" VARCHAR2(100 BYTE),
        "DATE_OF_DOCUMENT" DATE, 
         "DATE_OF_PAY_DAY" DATE,
         "DATE_OF_PAYMENT_REC" DATE,
         "VALUE" NUMBER,
         "VALUE_DEDUCT" NUMBER,
        "DATE_FROM" DATE,     
         "DATE_TO" DATE
         );
    Statements in the INVOICE table should be like this:


    ........ The Bill... date_of_document... date_of_pay_day... date_of_payment_rec... value... value_deduct... Date_from... Date_to
    1......     1000...............1.1.2012.................1.3.2012................NULL............................ 5000... NULL... 1.3.2012...1.4.2012
    2......     1000...............1.4.2012.................NULL..................... 1.4.2012...1000... 4000... 2.4.2012... 1.5.2012
    3......     1000...............1.5.2012.................NULL..................... 1.5.2012...3000... 1000... 2.5.2012... 1.6.2012
    4......     1000...............1.6.2012.................NULL..................... 1.6.2012...1000


    Can someone help me with the sql statement that would insert data from table to table Bill temp_invoice as in the example?

    Thank you!

    PS

    I would try to explain.
    (1) the first statement that is to be inserted is original imply that at which is different DATE_OF_PAY_DAY to NULL.
    To this inserted negative of the original imply, we must add date_from that is exatly the same date_of_pay_day and date_to which is exactly the same as the date of the first payment. Payment which came first!
    (2) we have now in the second insert statement. It will be the first payment of lease with date_of_document and date_pf_payment_rec, which is the same as date_fo_document. Value field will be populated with the amount of payment received and value_deduct field will be the value of the original imply - value of the first payment. Date is date_of_document + 1 and date_to is the date of the next payment.
    (3) Insert us the next installment. Date_od_payment_rec is the same as date_of_document... value is the amount of the second payment and value_deduct's previous value_deduct which was of 4000 - value of this second payment. date_from date_of_payment_rec + 1 and date_to is the date of the next payment

    So we continue this same pattern until we reached the final payment when we finish insert with the statement:
    Date of the document (date of the last payment received) and even for date_of_payment_rec and field value with the amount of the payment receieved. The rest (value_deduct, date_from, date_to) is null.

    I really hope you understand what I'm trying to do here.

    If you have any other questions please.

    Published by: user13071990 on November 22, 2012 04:16

    Published by: user13071990 on November 22, 2012 04:16

    Hello

    user13071990 wrote:
    ... Here are the instructions for correct insertion. This time, I posted 2 examples with 2 numbers different otherwise.

    Ok!
    Be sure to post the results you want new data.

    You probably need to add "PARTITION BY the Bill" to all analytical clauses in my solution:

    INSERT INTO invoice
    ( invoice, date_of_document, date_of_pay_day, date_of_payment_rec
    , value,   value_deduct,     date_from,           date_to
    )
    SELECT       invoice
    ,       date_of_document
    ,       date_of_pay_day
    ,       CASE
               WHEN  k > 0
               THEN  date_of_document
           END          AS date_of_payment_rec
    ,       NVL (d, k)     AS value
    ,       NVL2 ( date_of_pay_day
                , NULL
                , SUM (d) OVER ( PARTITION BY  invoice
                                          ORDER BY      date_of_document
                         )
                - SUM (k) OVER ( PARTITION BY  invoice
                                          ORDER BY      date_of_document
                         )
                )     AS value_deduct
    ,       NVL ( date_of_pay_day
               , date_of_document + 1
               )          AS date_from
    ,       LEAD (date_of_document) OVER ( PARTITION BY  invoice
                                            ORDER BY      date_of_document
                               )
                          AS date_to
    FROM       temp_invoice
    ;
    

    Because I'm not an English speaker nativ, that I just posted what it should look like after the insert is successful.

    OK, so you can't explain as you want, but you still need to explain.

    ... @Frank Kulash: you are very close, but still not quite what I'm looking for.

    Point out where my solution is the production of incorrect results, and explain (as you can) how to get good results in these places.

  • How to do an if then statement on a PDF form

    I'm doing an if then statement on a PDF form.

    The field is a field A * B = C.  If C < 10 then C = 10, of another C = A * B

    How can I write the Adobe Pro is on a PDF form?  I went into properties, the calculated field and nothing I've tried works.

    Each field is a separate object, so if you have 3 fields such as 'A', 'B' and 'C' are a single object has a unique value. Each field must be consulted individually, you should get the value in field "A" in a statement, the value of the field 'B' in another statement.

    var C = this.getField ('A') .value * this.getField("B").value;

    If (C)< 10="" )="" event.value="">

    else event.value = C;

    You can see more clearly with code like:

    var A = this.getField ('A') .value; the value of a field;

    var B = this.getField ('B') .value; the value of field B;

    var C = A * B; the field value has multiplied by the value of the field B;

    If (C)< 10="" )="">

    Event.Value = 10; the value is 10 when produced less than 10;

    } else {[]}

    Event.Value = C; another value is the product;

    }

  • Procedure with the DML statements that insert values from 1 to 100 in only one table and it is matching word equivalent in the other

    Can someone help me create a procedure with the DML statements that insert values from 1 to 100 in a table "abc" and the procedure must connect the numbers into words in another table "xyz" without doing a commit explicitly. "."

    Currently on trial...

    SQL > create table abc (num number);

    Table created.

    SQL > create table xyz (num varchar2 (100));

    Table created.

    SQL > ed
    A written file afiedt.buf

    1. insert all
    2 values of 1 = 1 then in abc (num) (l)
    3 when the values of 1 = 1 then in xyz (num) (to_char (to_date(l,'j'), 'jsp'))
    4 * Select the level from dual connect by level<=>
    SQL > /.

    200 rows created.

    And the result...

    SQL > select * from abc;

    NUM
    ----------
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    ..
    ..
    ..
    98
    99
    100

    100 selected lines.

    SQL > select * from xyz;

    NUM
    ----------------------------------------------------------------------------------------------------
    one
    two
    three
    four
    five
    six
    seven
    eight
    nine
    ten
    Eleven
    twelve
    ..
    ..
    ..
    98
    Nineteen eighty
    Cent

    100 selected lines.

  • Síntax liquid for webapps fields with spaces

    Silly question I am stock with.

    How we make in a video collection called a field named as 'Youtube Id' {{video.items. ["YouTube Id'] | JSON}} does not work...

    Thank you

    Hi, Machinette

    While using the code {{this.video.items [0].}} ["YouTube Id'] | JSON}} you access the array element, so that everything will work fine, however if you want to display all items from webapp 'Youtube Id' field then the best option is to use the for loop.

    Example: {module_webapps id = "1223" filter = "all" collection model = "webcall" = ""} / / I have collected all the data of webapp id 123 to collection webcall

    This webapp now have the name of the 'Number of tickets' field (with spaces).

    To display all the data in the 'Number of tickets' field, we can run a forloop as below

    {% for items in webcall.items %}

    {{Items. ["Ticket number"]}}

    {% endfor %}

    This will display all the items in the "Ticket number" field.

    I also created a test page: test of liquid

  • If then statement help

    Thanks in advance for your help. I work on a PDF form and has difficulty with a logical statement (If Then). Then the field (TotalEligibleServiceCatchup) should be the least of the three amounts: TotalElectiveSalaryDeferralMinusYearsOfServiceCatchup, LifetimeMinusCatchupAmount, or $3,000. In other words, if the Total salary deferral less years of Service catch-up is like $3,000 and life less amount of catch-up is greater than $3,000; the value of the calculated field is $ 3,000. If one or both of the first two values are less than $3,000, the calculated field is the least of these values.

    Thanks in advance for your help.

    In this case, you can use this code as the custom of your domain calculation script:

    var v1 = +this.getField("TotalElectiveSalaryDeferralMinusYearsOfServiceCatchup").valueAsString;
    var v2 = +this.getField("LifetimeMinusCatchupAmount").valueAsString;
    event.value = Math.min(3000, v1, v2);
    
  • Assignment of a value to a numeric field with a button

    11gxe, apex 4.x,

    Hi all

    I'm trying to assign the value to a number field with a button,

    I created a button, then one action for this button, when it is selected.

    dynamic action is based on Pl\Sql code and the code is

    begin
    :p2_assign := 455 ; -- where the page is "p2" and the number field is "assign"
    end ; 
    

    but it does not work, why?

    Create a DA

    Select the onclick of the button

    Set the value as action

    Select the item that should be defined as

    You return your return values

  • Calculated field with the currency formatting, and hiding the values null

    I am designing a PDF form for quote and I have a field defined to multiply the amount of an article and the unit price to the total price.  There are 5 lines on each quote, and if users are citing only 1 or 2 items I want the values null in fields unused price extended to be hidden.

    I did it with the following script

    If (event.value == 0) event.value = ";

    But when I enter the quantity and total price of price is displayed as a regular number (100) instead of currency ($100).

    I can format to currency with

    Event.Value = util.printf ("$%.2f", event.value);

    I don't know there's a way to combine to give rise to such a situation then, so if the field is 0, make null and if not then format as currency but I don't know how to do it.

    Any help would be appreciated.

    Andrew

    Newer versions of Acrobat hide zero for fields values using the number format and with a currency symbol. »

    But since you can't control the updating of user systems, you must use a small function documented for formatting numeric fields on the fly.

    With the extended price field set to 'None' format, you can add the following script to the Validation script "Custom" or add it to a custom JavaScript calculation. The "Custom Validation will work with any method of calculation. Note that the form must be cleaned or recalculated to see the result of the validation script change.

    if(Event.Value == 0) {}
    Event.Value = ""; set the field value to null to a value of zero
    AFNumber_Format (2, 0, 0, 0, "", true); number with no currency symbol format
    } else {}
    AFNumber_Format (2, 0, 0, 0, "$", true); for the format of the values non-null for number with the currency symbol
    }

    The positional parameters are the number of decimal places, the Style separator, negative value Style, Style of (unused) currency, currency symbol, the currency symbol Pre-hanging chain.

  • Select a number of fields between one area and another

    Hello

    Is it possible to do a SELECT to show a number of fields of one field on the other.
    without writing all the fields one by one?

    For example, I have a table with the fields:

    EMPLOYEE TABLE:

    ID_EMPLOYEE NAME PHONE CAR AGE MARRIED

    and I want to just do a SELECT that shows only the NAME to the AGE fields, but I don't want to
    write to SELECT it all the fields one by one.

    Is this possible?

    Thank you very much.

    Sorry for my English is not very good.

    Selim wrote:
    HI, use the function below to get a list of the names of columns between 2 columns in a table

    Or something similar to SQL...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select '&table_name' as tn, '&min_col_name' as min_col_name, '&max_col_name' as max_col_name from dual)
      2      ,cid as (select min(column_id) as min_col, max(column_id) as max_col
      3               from  user_tab_columns, t
      4               where upper(table_name)=upper(tn)
      5               and   upper(column_name) in (upper(min_col_name),upper(max_col_name))
      6              )
      7  --
      8  select ltrim(sys_connect_by_path(c, ','),',') as cols
      9  from (
     10        select row_number() over (order by column_id) as i
     11              ,column_name as c
     12        from   user_tab_columns, t, cid
     13        where  upper(table_name)=upper(tn)
     14        and    column_id between min_col and max_col
     15       )
     16  where connect_by_isleaf = 1
     17  connect by i = prior i + 1
     18* start with i = 1
    SQL> /
    Enter value for table_name: emp
    Enter value for min_col_name: job
    Enter value for max_col_name: comm
    old   1: with t as (select '&table_name' as tn, '&min_col_name' as min_col_name, '&max_col_name' as max_col_name from dual)
    new   1: with t as (select 'emp' as tn, 'job' as min_col_name, 'comm' as max_col_name from dual)
    
    COLS
    -------------------------------------------------------------------------------------------------------------------------------
    JOB,MGR,HIREDATE,SAL,COMM
    
    SQL>
    

    which could just as easily be turned into a function.

    Of course, it is usually fast enough just to do a describe on the table statement in SQL * more and use the copy/paste and a quick insertion of «,»

  • If/then statement

    I am designing a form that has 2 columns and I am looking for a script to fill a column based on data in the other.  Specifically, if classes has, B, C, D are entered in the column on the left, then the right column filled with 3 hours of credit.

    I took a fairly simple if/then statement... Found one in the help section of my software, plugged, named fields properly in the object palette and in the script.  No go.

    Book Terry JT not useful and my computer is not versed in Java.

    Or, maybe I'm doing it too hard and FormCalc would be the right choice?

    Thank you!

    Hi Milly,.

    You didn't say what else is in the grade or the opportunities that lay is A +, B-, etc. AND they are in a table row. I suppose they are in a table. I think on a drop-down list for the grade box. That said, this might work for a drop-down list box or a text field containing the grade (depending on how you have the menu drop-down set up) or this script is changed for a drop-down list containing the digital item values in the 'Connection' tab easily. It lends itself to the computer GPA (if it is an ultimate goal).

    Grade Credit
    A 3
    C 3
    F 0
    A 3

    The script is quite easy.

    Make sure you place this on the calculate of the "credit" field event AND formCalc is the language:

    ////////////////////////////

    If (rank< "f")     ="">

    $ = 3

    on the other

    $ = 0

    endif

    ////////////////////////////

    If there is + or - grades, you could use

    ////////////////////////////

    If (Substr (grade, 1, 1)<  "f")     ="">

    $ = 3

    on the other

    $ = 0

    endif

    ////////////////////////////

    La: Substr(grade,1,1) from the 1st letter of the slope and uses for comparison

    Replace with the name of your field of rank for the "rank" above and you should be good to go.

    Good luck

    Stephen

Maybe you are looking for