How to make really a required element

Hi all.

Is it possible on an html page to make a necessary point?. I mean, Apex can do a necessary element, but I mean, it's to make it necessary in the way that Oracle Forms t - it.

For example, in a forms application when an element is required, once you browse it, you are force to provide a value to continue normal processing. On Apex, I saw you can immediately, using dynamic action, tell the user "this point is necessary" but the user can access any other element on the page.

Thanks in advance...!

Apex is supplied with jquery and jquery is by default included in each page. So no, you do not need to download or install any library (in this case).

I use jquery because it improves the use of javascript so much, and so I don't have to wrap your head around the inconsistencies between browsers javascript. If you are developing in apex, I would pick up jquery at some point quite (in) valuable.

You can convert this piece of code in javascript well. You can use the attribute onblur on your objects and call a function, such as onblur = "check_value (this) ', and put in the code javascript piece of your page"

function check_value(el){
   if($v(el)==''){
      alert("no value!");
      setTimeout(function(){$x(el).focus();}, 5);
   };
};

Who should do this as well. There is no dynamic action blur-event, so we are unable to do that, unfortunately.

If you go with the original part of the code, you will need to put it in the onload or in the script tags AFTER your item (so that the element comes first in the DOM). I usually wrap up these pieces of code in a function, and then call this function in the onload part (the 2 textareas on the page edit page).
JavaScript:

function do_onload(){
...code...
};

OnLoad:

do_onload();

Or, maybe even better, make a dynamic action with the load event of the page, then run javascript and put the code!

Tags: Database

Similar Questions

Maybe you are looking for

  • Compatibility of the part

    I need a replacement 14 "motherboard for my R52 with ATI graphics card. #39T 5684 is compatible? Model of Thinkpad R52-1847-2FU is.

  • On load, need help.

    Hello everyone. A few months ago, I bought Xperia Z3. I watched all the videos on Xperia Z3 on YouTube. And on the life of the battery, everyone says "up to 2-day autonomy.» first 3-4 months was good, but now its maximum 10-11 hours. What about 48 ho

  • Page zoom activates itself and cannot be controlled

    Page zoom feature gets mad and has a mind of your own.  Windows Explorer expands up on its own. Outlook pages can be reduced to the tiny size of their own.

  • e-mail active printers

    Can Hi anyone tell me if the all in one 2540 has e-mail capabilities Thanks in advance

  • How can I check my system ' clock

    Separated from this thread. How can I check my system ' clock.    and my CMOS BATTERY?   Help!