Conditional display of post element text.

Hello,
I wanted to know if it was possible to display the
post element text for a text item conditionally.
Thanks,
shilpa.

Hi Shilpa
I am not aware of any functionality to conditionally display the post element text on its own. However there are 2 ways around this.
1) If when entering the page you want to decide if you should display the text you could, after each item add a display only item and put a condition on that. Changing the display only items displayed properties to Begin On New Line = NO and Field = NO will give the impression of post element text
2) If you want to conditionally display the text dependent on what the user has entered into the box you could use some javascript in the post element text field. e.g.
<span id="me"></span>
<script language="javascript">
function test1(){
if (1 + 1 == 2){
document.getElementById("me").innerHTML = "sometext";
</script>
then in the html form element attributes field you can call this function like this:
onblur="test1()"
Hope that helps
Adam

Similar Messages

  • Post Element Text

    Hi,
    I'd like to use JavaScript to add some post element text to some form items that is based on the content of the form item.
    I know that I could just add some extra items on my page and condition them but I'm keen to avoid this as I don't want to clutter the page with too many items. I'd rather just have post element text that I can condition in some way.
    Any ideas how I'd do this?
    Cheers
    Yog

    Hello,
    Just add something like this. To your post element attribute
    <span id="after_#CURRENT_ITEM_NAME#"></span>
    and lets say your item name is
    HELLO
    you javascript should look like this
    $x('after_HELLO').innerHTML = 'After Hello';
    or
    html_GetElement('after_HELLO').innerHTML = 'After Hello';
    Carl
    Message was edited by:
    Carl Backstrom

  • Post Element Text on report items

    I am trying to add an image after an item on a multi row report.
    Was wondering if there was anything similar to the Post Element Text attribute that is available for individual page items??
    I admit to being a little lazy in trying to create a custom popup lov (Displays description, returns key value) in a multi row report without using the htmldb_util.item function (as this would mean having to create my own optimistic locking and md5 computations).
    Was wondering if this was possible and if anyone had done this??

    Vikas,
    just trying to create a multi-row report which has several columns
    one of the columns is hidden and stores the id. One of the visible rows stores a description associated with the hidden id.
    I then want to display the list.gif icon after the description field so that it looks like a popup lov (i will code the popup up stuff seperately). In effect i wish to mimic the functionality provided by htmldb_item.popupkey_from_query without having to also code the optimistic locking you have to when using this in a query.
    what i am thinking is that if my reports select statement is a basic column selection and i can add a href image to the column as a post element text then this will give me the functionality i need with the optomistic locking provided out of the box?
    sorry the concept seems quite easy in my head but quite hard to explain ;-)

  • Post Element Text - Checkbox

    Apex 4.0.2
    Suppose I use the Post Element Text attribute of a page item to render a checkbox using <input type="checkbox" .... and a dynamic action to save its state to a database table. I am sure this will work fine but when the page loads how do I go about setting the value of all these checkboxes?
    Any ideas? Thanks

    Hello Vikas,
    >> I am sure this will work fine but when the page loads how do I go about setting the value of all these checkboxes?
    The trick is to use a checkbox that has the same ID and value. Remember that only checked checkboxes are submitted to the server. You can look at the following for a simple example:
    http://htmldb.oracle.com/pls/otn/f?p=52616:30
    Now for some code. I’m using the following as the post-element content for the first checkbox:
       <input type="checkbox" name="f50" id="CB1" value="CB1">Option 1<br />The HTML name will remain the same for all checkboxes; however, the ID and value should be different for each extra checkbox (e.g. CB2, CB3m etc.). In this example, the checked checkboxes will be populated, at submit time, into the G_F50 array. Of course, you can use any other available G_Fxx array.
    I’m using the following table to save the checkboxes state:
    CREATE TABLE  "CB_STATE"
       (     "PAGE" NUMBER(4,0) NOT NULL ENABLE,
         "VALUE" VARCHAR2(4) NOT NULL ENABLE
       ) ;For saving the checkboxes state, I’m using the following after submit PL/SQL process:
    delete from cb_state
    where page = :APP_PAGE_ID;
    for i in 1..apex_application.g_f50.count loop
      insert into cb_state
      values(:APP_PAGE_ID, apex_application.g_f50(i));
    end loop;For setting the checkboxes state, while rendering the page, I’m using the following Before Footer PL/SQL process:
    htp.p('<script type="text/javascript">');
    for x in (select * from cb_state
              where page = :APP_PAGE_ID) loop
      htp.p('$x('''||x.value||''').checked = true;');
    end loop;
    htp.p('</script>');I’m sure you can translate the last snippet of code to a Dynamic Action. If you do, please post it in here.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Post-element text with computed value

    I have a page item (P10_X) with post-element text referencing a application level item using &G_ITEM. notation. G_ITEM is computed on the page and the computation needs to take into account the value of P10_X so the firing point is "after footer".
    This leads to a Catch-22 because the item and post-element text is rendered before the computation so the value of G_ITEM is not accurate.
    Any ideas? Thanks

    Not sure I understand. Suppose P10_X=10 when it is rendered. G_ITEM is computed as :P10_X (i.e. 10) + (select ...). The post-element text for P10_X refers to &G_ITEM. so it uses the "stale" value of G_ITEM; the latest value is not computed until after all regions are rendered.
    Edit: Turns out that P10_X obtains it value in an Before Header application process, not via its Source attribute. So I can put the computation for G_ITEM at the After Header point and so everything gets computed and rendered properly.
    Edited by: Vikas2 on Jul 14, 2009 4:05 PM

  • Image in a post element text : urgent

    hello.
    I am simulating a lov popup field (display description, return key..) because I am building the popup page manually...
    All works fine, I have a text field witch receive the key and display a description, I am concatening an image (in the post text element), when I click on this image My lov popup is openeing...
    My problem is : the image witch is right to the text field must be stuck to this text field ( I have a space between them),
    Any idea please ?

    lila,
    We can look at your application on htmldb.oracle.com where you reproduce this problem. Just post the app ID and we'll take a look.
    Scott

  • 3.12 post element text appearing on new line

    I have an icon and some javaScript behind it to clear the content of the item, which on moving to 3.12 is moved onto the next line:
    http://apex.oracle.com/pls/otn/f?p=41395:10
    Is there a simple way of avoiding this please so that it all appears on the same line (as in v2)?
    Phil

    Hi Phil,
    In your page's HTML Header setting, add in:
    &lt;style type="text/css"&gt;
    fieldset {display:inline}
    &lt;/style&gt;By default "fieldset" items are block elements so will always end with a new line - the above forces it to flow with the text
    Andy

  • 3.1 upgrade problem:  Post Element Text does not align properly - DUPLICATE

    Duplicated in error - problem with browser. Please remove this one.
    Thank you.
    Message was edited by:
    Thomas 8246

    Duplicated in error - problem with browser. Please remove this one.
    Thank you.
    Message was edited by:
    Thomas 8246

  • Button with pre element text is given a container div

    Hi!
    Just installed 4.2.2.00.09 and imported a workspace and an application. Worked fine.
    I noted a page display difference when compared to the exported application (4.1.0.00.32). I have (so far) found this:
    If I have a button with Pre Element Text set to <div class="dummy"> and Post Element Text set to </div>, Apex generates an extra div around it all.
    If my button was named P1_SUBMIT I end up with
    <div id="P1_SUBMIT_CONTAINER">
    <div class="dummy"> <input type="button" value="Search" id="P1_SUBMIT" /></div>
    </div>
    Is it possible for me to turn this extra div off?
    Kind regards
    Tomas

    Hi,
    Change the "Number of Columns" setting in the "List of Values" where you define the 1,2,3,4,5 to "5", and you'll be all set.
    --Jennifer                                                                                                                                                                                                                                                                                                   

  • Conditional display in a SQL-Report/Report Region

    Hi,
    here I have an example for "Conditional display in a SQL-Report/Report Region". I figured it out in Firefox 3.6.2 using Firebug as development tool on Apex 3.2.1.00.12.
    First you have to put the following javascript code in the Page HTML-Header:
    <script type="text/javascript">
    <!--
    // SOURCE
    // W:\oracle\PRJ DWLS\javascript.07.js
    // Beispiel Funktion zur bedingten Formatierung einer Tabellenzelle.
    // Help (Substitution Strings):
    // http://htmldb.oracle.com/pls/otn/wwv_flow_help.show_help?p_lang=de&p_session=2412201185523196&p_flow_id=4003&p_step_id=420,4003
    // HTML Expression:
    // <script>ex_conditional_td('R094260001010', #ROWNUM#, #COLNUM#-1);</script>#DFT_COND1#
    function ex_conditional_td
    ( p_id
    , p_rownum
    , p_cellnum
      var l_td;
      l_td = vd_getColumn(p_id, p_rownum, p_cellnum);
      // hier die Bedingung definieren
      if (true) {
        l_td.style.color = '#808080';
    }  // -- eof ex_conditional_td -- //
    // Beispiel Funktion zum Abstellen der onMouse Funktionalität der Tabellenzeile
    // HTML Expression:
    // <script>ex_conditional_tr('R094260001010', #ROWNUM#);</script>#DFT_ID#"
    function ex_conditional_tr
    ( p_id
    , p_rownum
      var l_tr;    // TABLE.TR
      var l_td;    // TABLE.TR.TD
      if (true) {
        l_tr = vd_getRow(p_id, p_rownum);
        l_tr.onmouseover = null;
        l_tr.onmouseout  = null;
        for (var i=0; i<l_tr.cells.length; i++) {
          l_td = l_tr.cells;
    l_td.style.backgroundColor = '#DDDDDD';
    } // -- eof ex_conditional_tr() -- //
    var g_DEBUG = false;
    var g_TBODY = null;
    // Liefert das Body-Element der Tabelle mit der ID <p_id>.
    // Parameter
    // p_id - die Id der HTML-Tabelle
    // Return
    // das Body-Element oder NULL, wenn die Zeile nicht gefunden wurde
    function vd_getBody
    ( p_id
    if (g_TBODY == null) {
    var l_table = null;
    l_table = document.getElementById( p_id );
    if (l_table == null) {
    l_table = document.getElementByName( p_id );
    if (l_table != null) {
    if (vd_debug()) {
    alert("Tabelle gefunden, " + l_table.nodeName);
    g_TBODY = vd_search( l_table, 'TD', 't10data', 'TBODY');
    return g_TBODY;
    } // -- eof vd_getBody() -- //
    // Liefert die Zeile <p_rownum> der HTML-Tabelle mit der Id <p_id>.
    // Parameter
    // p_id - die Id der HTML-Tabelle
    // p_rownum - die Zeilennummer
    // Return
    // die Zeile oder NULL, wenn die Zeile nicht gefunden wurde
    function vd_getRow
    ( p_id
    , p_rownum
    var l_body = vd_getBody(p_id);
    if ( l_body != null
    && l_body.nodeName == 'TBODY'
    && l_body.children[p_rownum].nodeName == 'TR') {
    return l_body.children[p_rownum];
    else {
    return null;
    } // -- eof vd_getRow() -- //
    // Liefert die Spalte <p_column> der Zeile <p_rownum> der HTML-Tabelle mit der
    // Id <p_id>.
    // Parameter
    // p_id - die Id der HTML-Tabelle
    // p_rownum - die Zeilennummer
    // p_column - der Index der Spalte / Zelle
    // Return
    // die Zelle oder NULL, wenn die Zelle nicht gefunden wurde
    function vd_getColumn
    ( p_id
    , p_rownum
    , p_column
    var l_tr = vd_getRow(p_id, p_rownum);
    if ( l_tr != null
    && l_tr.nodeName == 'TR'
    && l_tr.children.length >= p_column
    && l_tr.children[p_column].nodeName == 'TD') {
    return l_tr.children[p_column];
    else {
    return null;
    } // -- eof vd_getColumn() -- //
    // Rekursives Suchen nach einem Node.
    // Zweck: Das bedingte Formatieren einer Tabellenzelle in einem Apex Standard
    // SQL-Report.
    // Diese Funktion durchsucht rekursiv, ab einem Ausgangsknoten <p_node>, alle
    // darunter befindlichen Elemente, ob in dem Element <p_seachIn> sich die
    // Klasse <p_class> befindet.
    // Bei Standard-Reports ist die Reportzelle (TD) mit der Klasse
    // "t10data" formatiert.
    // Zunächst muss dazu die Tabellenzelle (TD) selbst, die übergeordnete
    // Tabellenzeile (TR), der Tabellenbody (TBODY) oder die Tabelle (TABLE)
    // selbst ermittelt werden.
    // Der Beispielaufruf:
    // var l_body;
    // var l_node = document.getElementById( 'R112233' );
    // l_body = search( l_node, 'TD', 't10data', 'TBODY');
    // durchsucht also das mit der Id "R112233" versehene Element [der Report, für
    // den in Apex eine statischen ID vergeben werden musste] rekursiv, bis er
    // die [erste] Tabellenzelle "TD" findet, die als Klasse "t10data"
    // definiert hat. Für diese ermittelt er dann das übergeordnete TBODY-Element.
    // Parameter
    // p_node - das Ausgangselement
    // p_searchIn - der Knotenname, der durchsucht werden soll
    // [node.nodeName == p_searchIn]
    // p_class - der Name der CSS Klasse
    // [node.classList[<index>] == p_class
    // p_parentName - der Name [node.parentNode.nodeName == p_parentName]
    // des Elements, das zurückgeliefert werden soll. Wird als
    // p_parentName der Suchname p_searchIn angegeben, wird
    // das Element selbst zurückgegeben.
    // Return
    // das per p_parentName gesuchte Element (TD, TR, TBODY, TABLE)
    function vd_search
    ( p_node
    , p_searchIn
    , p_class
    , p_parentName
    var LN = "vd_search";
    var l_element = null;
    // DEBUG
    if (vd_debug()) {
    alert(LN + ":" + "Untersuche " + p_node.nodeName + ", id=" + p_node.id);
    // 1) der aktuelle Knoten ist der, der durchsucht werden soll
    if (p_node.nodeName == p_searchIn) {
    if (p_node.classList.length > 0) {
    for(var c=0; c<p_node.classList.length; c++) {
    if (p_node.classList[c] == p_class) {
    // Parent Node dynmisch suchen
    l_node = p_node;
    if (l_node.nodeName == p_parentName) {
    return l_node;
    while(l_node != null && l_node.parentNode != null) {
    if (l_node.parentNode.nodeName == p_parentName) {
    return l_node.parentNode;
    else {
    l_node = l_node.parentNode;
    // 2) wenn nicht 1) oder nicht in 1) gefunden, dann in den Kindelementen
    // weitersuchen
    if (p_node.children.length > 0) {
    var i = 0;
    while (i<p_node.children.length && l_element==null) {
    l_element = vd_search( p_node.children[i], p_searchIn, p_class, p_parentName);
    i++;
    return l_element;
    } // -- eof vd_search() -- //
    // Gibt an, ob Debug ein- (true) oder ausgeschaltet (false) ist.
    // Return
    // true - debug ist eingeschaltet
    // false - debug ist ausgeschaltet
    function vd_debug()
    return g_DEBUG;
    -->
    </script>
    Maybe you have to modify the "vd_getBody" function. I'm searching the table cell with having the class "t10data". When you use another theme, there's maybe another class used.
    Second is, that you set an static id for your report region. I prefer this structure:
    R<app-id><page-id><seq> (Raaaaappppsss) e.g. R094260001010.
    First example is to turn off the onMouse-Effect. Maybe on the first or last column definition you put this code in the "HTML-Expression" area:
    <script>ex_conditional_tr('R094260001010', #ROWNUM#);</script>#ID#This will call the example function ex_conditional_tr with the parameter
    a) the region id
    b) the rownum (as oracle always starts with 1 this is the first data row [rownum=0 is the table header row])
    Second example is the conditional formatting of a table cell. Put this in the HML-Expression area:
    <script>ex_conditional_td('R094260001010', #ROWNUM#, #COLNUM#-1);</script>#ENAME#This will call the example function ex_conditional_tr with the parameter
    a) the region id
    b) the rownum
    c) the cellnum (here we have to subtract 1 to get the "real" cell index)
    The "ex_conditional" functions are just a representation of how to get the row or cell node.
    Hope this help a bit.
    Tom

    I would use a CASE statement in the select....
    each CASE would be an img src tag for a different button if the button is an image.
    does that make sense? I can include an example if you would like...

  • Problems with Conditional Display and Read Only

    Hi Everybody,
    I have a form to Add/ Modify Table Info.
    I have column which stores numeric value (like no. of purchases, no.of returns etc.,) and I have a text field with this Database column as Source.
    In some cases the value is a foreign key (Id of the Owner, Buyer etc.,) to another table. In such cases, I want to display a select list containing people information. Is that possible?
    This is what I did to achieve that
    I added a select list with info from second Table. Made both the text field and the select list to conditional display and conditional read only.
    My understanding is that When an item is made read only it should not be saved to the Database.
    But while Updating I am getting the following Error
    ORA-06550: line 1, column 130: PL/SQL: ORA-00957: duplicate column name ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored.
    Any can anybody help me out on this?
    Thanks
    Nimmi

    My understanding is that When an item is made read only it should not be saved to the Database
    No, all page items with a Source Type of "Database Column" will be used by the Automatic DML process to insert/update the database. Form inputs with the "disabled" HTML attribute set are not POSTed to the server.
    Try to create 2 items, one Select List and other Text Field but setup their conditions such that only one of them is rendered on the page at any given time. That might work.

  • Need help with conditional display

    I found a older thread (704012) that explains how to conditionally display a link using style.  Which is what I want to do.  The part I'm having trouble with is that part of the instructions say to put
    class="row_has_values_#HAS_VALUES#"
    in the Link Attributes which I have done.  I also have a column in the report called HAS_VALUES and I'm properly populating it in my select.  I know because I left it displayed while I'm testing.  I can run the report and I have Y's and N's showing up in that column but the conditional part does not work.  When I look at the page source (below) I see that in the html the #HAS_VALUES# has not been replaced by the actual Y or N.  I think that's where I'm having trouble?  I think it might work if there was a Y or N in that but I don't understand why that didn't happen.
    <tr class="odd"><td headers="LINK"><a href="f?p=125:3:12628966088981::NO::P3_PROGRAM_KEY:2" class="row_has_values_#HAS_VALUES#"><img src="/i/e2.gif"  border="0"></a></td><td  align="left"

    LawrenceJ wrote:
    I've continued to snoop around and see lots of posts on conditional display in reports.  Common desire I guess.  I saw some stuff that I interpreted to suggest that what I'm trying to do may not work in interactive reports, only in classic reports.  Does that sound familiar?
    That would certainly apply to anything template-related. However there have been enhancements to IRs (like adding HTML Expressions) that might supersede information in older posts. If you provide a link to the sources you've found and the APEX version you're using someone will be able to confirm whether that information is relevant.
    Many other posts on doing things conditionally in reports seemed to lean towards "selecting" the html based on data values and then just letting that get put in the report column.  That looks promising but sure is a bit ugly.  I've very little apex experience but lots of mod pl/sql and that sort of solution was pretty common when I did stuff with it.  I saw a little suggesting using templates as a solution but I'll confess to not understanding it at all.
    As I pointed out in the original thread, if the conditional display of the link is in any way security related then CSS or JS/jQuery methods are not acceptable. If the user is not supposed to be able to click the link or see any data contained in it, then you have to use a method that ensures that the link element never reaches the browser.
    Hard-coding the link HTML in the report query is the common approach, but is as you say a bit ugly. Using a custom report template (my favourite APEX subject) enables clean separation of the report query, conditional logic and HTML structure. If you know HTML then you're advised to get familiar with using templates in APEX. You'll find this a major advance on the PL/SQL web toolkit. What is it that you're not understanding about using templates?

  • Application Level Function for Conditional Display

    I need to hide a field on Print Preview if it is null. I currently have the following PL/SQL Expression Condition:
    :P305_DEPT IS NOT NULL AND v('PRINTER_FRIENDLY') <> 'YES'
    It works great; now I need to do this for a lot more fields within my application. Is there a way to call a PL/SQL process defined in HTML DB, passing it the current item value, or some other way to save myself some typing?
    I've tried various combinations of shortcuts, substitution strings, application processes, etc. and can't seem to get the right combination.
    I'm hoping you have a cool solution, or some other ideas I can try out.
    Thanks!
    Chaunaci

    Hi Raj,
    All of this came up because we have several data items displayed above each report page, which allow the user to enter filter criteria. When the page is displayed in Print Friendly mode, the Select Lists display as blanks when null, but Text Boxes display as [] when null.
    Our QAs have asked us to make all of the filter fields consistent in appearance in Print Friendly mode. The work-around solution is to hide the filter fields that are null when in Print Friendly mode. Therefore, we came up with the following PL/SQL Expression to use in the Conditional Display:
    :P305_DEPT IS NOT NULL AND v('PRINTER_FRIENDLY') <> 'YES'
    Because I will need to add the above conditional statement to many items, I was hoping to create and call an HTML DB application-level process and pass the current item value in, so my conditional display logic would look something like...
    HIDE_NULL_ON_PRINT(:P305_DEPT).
    When I was doing some additional testing last night, I realized my boolean logic needed to be tweaked, and it would be nice to tweak it in just one place, rather than on every field's conditional display.
    I currently have it working by putting the IS NOT NULL AND v('PRINTER_FRIENDLY') <> 'YES' into an application substitution string, so my conditional logic shows as:
    :P305_DEPT &HIDE_NULL_FOR_PRINT.
    In trying to determine if this was the best solution, I need answers to the following issues:
    1. Is there a way to generically reference the current item in the conditional display logic? I currently type in the specific item name (ex: :P305_DEPT), but it would be nice if instead I could just say &CURRENT_ITEM_NAME. (or something similar).
    2. Can I create an application-level process, pass a parameter into it (the current item), and have it return a value that can be evaluated by my conditional logic display?
    Thanks so much for your quick responses to this and all my previous posts. It is wonderful to be able to post a problem at the end of the day, and come in to a solution in the morning!
    Chaunaci

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • Help with Conditional Display and Validation

    Version 4.1.1.00.23
    Hello,
    I'm having a difficult time with a conditional display and validation I'm hoping someone can help with.
    Requirements:
    When the Start Date (Datepicker) and/or End Date (Datepicker) change then display the Change Reason (Select List) and Change Description (Textbox)
    If the page is saved without entering a Change Reason display a validation error message that the Change Reason cannot be empty (NULL)
    What I've tried
    Create a Dynamic Action on the Start Date
    Event: Change
    Selection Type:Item(s)
    Items(s): P51_START_DATE
    Condition: none
    True Action Section:
    Action: Show
    Fire on Page Load: Checked
    Show all page items on the same line: No
    Affected Items Section:
    Selection Type:Item(s)
    Item(s): P51_CHANGE_REASON,P51_CHANGE_DESC
    I've also created a Dynamic Action with similar settings for the P51_END_DATE.
    I created a Validation for the P51_CHANGE_REASON as Function Returning Error Text:
    DECLARE
        v_start_date    work_items.start_date%TYPE;
        v_end_date      work_items.end_date%TYPE;
    BEGIN
        SELECT start_date
              ,end_date
        INTO   v_start_date
              ,v_end_date
        FROM   work_items
        WHERE  work_items_id = :P51_WORK_ITEMS_ID;
        IF ( (v_start_date != TO_DATE(:P51_START_DATE,'DD-MON-YYYY') OR v_end_date != TO_DATE(:P51_END_DATE,'DD-MON-YYYY') ) AND
              :P51_CHANGE_REASON IS NULL ) THEN
            RETURN 'Change Reason must have a value';
        END IF;
    END;
    The Issue
    I tried to create another Dynamic Action to hide the P51_CHANGE_REASON and P51_CHANGE_DESC fields on page load, but when either of the date fields are changed and the validation is fired the P51_CHANGE_REASON and P51_CHANGE_DESC are hidden again.
    There are two buttons to submit the page: 'SAVE' will submit the page and stay on the page and 'SAVE_CHANGES' will submit the page and branch to the previous page (which is a report with EDIT buttons to edit the record).
    I can't get the page load Dynamic Action to NOT fire when the validation is fired.
    I hope this is clear and if not what information can I provide?
    Thanks,
    Joe

    Phil,
    Thank you for looking at this.
    Yes if the Change Reason is NULL when the edit page is displayed then the Change Reason and Change Description fields are hidden. If the Start Date (Datepicker) and/or End Date (Datepicker) change then display the Change Reason (Select List) and Change Description (Textbox). If the page is saved without entering a Change Reason display a validation error message that the Change Reason cannot be empty (NULL).
    The problem I'm having is that if no Change Reason is entered and the page is saved thereby firing the validation the Change Reason and Change Description fields are hidden again (because of the On-Load Dynamic Action to hide them). So now the user can't put in a Change Reason...unless they change one of the date fields again which isn't going to be accepted.
    Is there a way to determine if a validation error was fired and be able to use that on the On-Load Dynamic Action to hide the two fields? Something like...If the validation fired then don't run?
    Please let me know if I'm still confusing you.
    Thanks,
    Joe

Maybe you are looking for