JavaScript Set value of dropdown to variable in SugarCRM variable dropdown selected value

I am fairly new to using SugarCRM and I am just trying to do some validation on a form page I have.

I am simply trying to get the value of my dropdown, and perform my error if it is equal to "None" but I am unsure how to get the value using SugarJS.

Here is an example of how i get just a basic input field, which is working correctly.

var first_name = $('input[name=first_name]').val();
var last_name = $('input[name=last_name]').val();

if (first_name == "") {
    $('input[name=first_name]').css({'border':'2px solid red'});
    proceed = false;
}

if (last_name == "") {
    $('input[name=last_name]').css({'border':'2px solid red'});
    proceed = false;
}
Answer:1

How I have a basic javascript registration form which sends the password that an user has filled to a secure axis2 web service (which stores the salted hash of the password in a database). Mu ...

How I have a basic javascript registration form which sends the password that an user has filled to a secure axis2 web service (which stores the salted hash of the password in a database). Mu ...

  1. secure client javascript
  2. javascript secure websocket client example
  3. javascript secure websocket client

I am building an windows app using Tide SDK. How can I open a local file from my app. For example, I have a pdf file somewhere in my harddisk. I put the link to that file to my app. When I click on ...

I am building an windows app using Tide SDK. How can I open a local file from my app. For example, I have a pdf file somewhere in my harddisk. I put the link to that file to my app. When I click on ...

  1. open local file in chrome
  2. open local file javascript
  3. open local file python
  4. open local file in browser
  5. open local file in google docs
  6. open local file in safari
  7. open local file in firefox
  8. open local file in edge
  9. open local file html
  10. open local file links in chrome
  11. open local file from browser link
  12. open local file in jupyter notebook
  13. open local file revit
  14. open local file c#
  15. open local file in office 365
  16. open local file with excel online
  17. open local file in chrome android
  18. open local file with barcode
  19. open local file with remote app
  20. open local file javascript chrome

If you need to keep scope in a nested function, it is convention to make a variable that that is the the this like so: var that = this; and reference that in the nested function. What is the ...

If you need to keep scope in a nested function, it is convention to make a variable that that is the the this like so: var that = this; and reference that in the nested function. What is the ...

i just found out that there was an extension to bootstrap when i am trying to find something like .row-linkso when i implemented it on my table, i can't seem to invoke a modal on when i click on each ...

i just found out that there was an extension to bootstrap when i am trying to find something like .row-linkso when i implemented it on my table, i can't seem to invoke a modal on when i click on each ...