[CLOSED] Set default button

  1. #1

    [CLOSED] Set default button

    How do I set it in javascript?
    Last edited by Daniil; Jun 06, 2013 at 4:33 AM. Reason: [CLOSED]
  2. #2
    Hi @michaeld,

    I think this should work.
    container.defaultButton = "buttonId";
  3. #3
    I assume there is a way to get the control name without the "App." in an XScript reference (like #{container} adds)? Or does that matter?
  4. #4
    Hello!

    You can just set Buttons ID or one of the following samples in this example: https://examples2.ext.net/#/Buttons/...efault_Button/
  5. #5
    Quote Originally Posted by michaeld View Post
    I assume there is a way to get the control name without the "App." in an XScript reference (like #{container} adds)? Or does that matter?
    A short answer is no. A long answer is yes, you can by using "#{}" and substring. Though, it doesn't matter, because this also should work.
    container1.defaultButton = #{Button1};
    container2.defaultButton = App.Button2;
    And yes, please look at the example which @Baidaly referred.

Similar Threads

  1. [CLOSED] Configure the ConfirmĀ“s default button
    By RCN in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 19, 2012, 1:51 PM
  2. Still unable to make login button as default button
    By santhu12smart in forum 1.x Help
    Replies: 3
    Last Post: Oct 05, 2011, 8:13 AM
  3. Panel Default Button
    By speddi in forum 1.x Help
    Replies: 8
    Last Post: May 23, 2010, 7:32 PM
  4. confirmation window default button
    By [WP]joju in forum 1.x Help
    Replies: 0
    Last Post: Aug 13, 2009, 5:02 AM
  5. [CLOSED] Default button
    By jchau in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 08, 2008, 5:51 PM

Posting Permissions