Results 1 to 2 of 2

Thread: Alert for dynamic fields while saving the record

  1. #1
    sairamhyd is offline Sugar Community Member
    Join Date
    Oct 2011
    Location
    Hyderabad
    Posts
    35

    Thumbs up Alert for dynamic fields while saving the record

    *I am adding fields dynamically -- need to display alert for mandatory fields
    1. By Clicking on add "Add Contact Details" button few fields will be displayed out of that 2 fields are mandatory.

    * While Saving record need to display alerts
    Attached Images Attached Images  

  2. #2
    davidboris's Avatar
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,525

    Default Re: Alert for dynamic fields while saving the record

    To validate field, You need to add javascript as below into the form.

    PHP Code:
    <script>addToValidate('<FORMNAME>','<FIELD_NAME>''varchar'true'<ERROR LABEL>');</script> 
    syntax is
    addToValidate(formname, name, type, required, msg);
    Web : http://www.urdhva-tech.com
    Twitter : @urdhvatech
    Email : contact@urdhva-tech.com
    Blog : Urdhva-Tech
    Skype : urdhvatech

    Our Premium Projects for SugarCRM:
    Premium theme for SugarCRM CE (Community Edition 6.5+ with 4 combinations, Black + Orange/Red/Green/Blue, bootstrap3 based)
    Duplicate detector to avoid duplicate data entry.
    Customer Self Service Portal for All Flavours.
    tagMe A complete tag management for SugarCRM.
    Meeting Map Reminder Meeting reminder with Gmap in Email

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Alert Templates not saving?
    By rwallaceCRS in forum Help
    Replies: 3
    Last Post: 2012-06-06, 07:31 PM
  2. Error alert when saving account
    By blablaz in forum General Discussion
    Replies: 3
    Last Post: 2011-07-07, 09:34 AM
  3. Saving of dynamic fields
    By sowjanya_m in forum Developer Help
    Replies: 3
    Last Post: 2010-06-23, 01:43 PM
  4. Alert when a record expires
    By shailendra001 in forum General Discussion
    Replies: 1
    Last Post: 2008-11-07, 09:07 AM
  5. send a dynamic value when creating a new record
    By meeric in forum Developer Help
    Replies: 1
    Last Post: 2008-10-09, 09:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •