Appnitro Software Forums » MachForm

where is "indicates required field"

(4 posts)

  1. vmills
    Member

    Seems like there should be some text on the form so users know what the red asterisk means, but I don't see any way to put it there. Am I missing something?

    Posted 3 years ago #
  2. Freddy
    Member

    You can add a section break at the end of the form with the text:

    * - Required fields

    and you could also use CSS to format the text.

    Posted 3 years ago #
  3. Hi,

    Or you can add some info to asterisk by modify "view-function.php" file, goto around line 24 ~ 27 and you'll find these code :

    //check for required
    if($element->is_required){
    	$span_required = "<span id=\"required_{$element->id}\" class=\"required\">*</span>";
    }

    change to

    //check for required
    if($element->is_required){
    	$span_required = "<span id=\"required_{$element->id}\" class=\"required\">* required</span>";
    }

    it will give "reqiured" text info beside "*" for single text element

    Posted 3 years ago #
  4. awarner20
    Member

    @ redityo

    Just wanted to say thanks for this. I had a need to add this to the email and address elements and this pointed my in the exact direction:)

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.