This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Regarding "Template Variable Lookup"


  1. MvdL79
    Member

    I have a question regarding "Template Variable Lookup"

    With the old version of Machform all variables were shown at once, instead of a pulldown. The overview was much easier to work with when your form has over 20 elements (and not to mention over 25 forms). Is it possible to get an overview, instead of a pulldown menu?

    It would save me a lot, and I repeat, a lot of time and hassle...

    Thanks.

    Posted 11 years ago #
  2. MvdL79
    Member

    I have another question as well, so hopefully both can be answered the same time...

    My second question is regarding a paragraph field. In helper-functions.php I created the following:

    if($form_id == 7){
    if($data['element_id'] == 14 && !empty($data['value'])){
    $data['value'] .= '<br><br>';
    }
    }

    For a particual paragraph (with ID 14), however for a different paragraph (with ID 24) I want something different. If this paragraph is left empy (and only when it's left empty), it should display the following text "Nothing is included here".

    How do I do that? Thanks.

    Posted 11 years ago #
  3. yuniar

    I have a simple workaround for the template variable. Please contact me directly and I'll send you the file.

    Regarding your second question, you can do it with this code:

    if($form_id == 7){
        if($data['element_id'] == 14 && !empty($data['value'])){
            $data['value'] .= '<br><br>';
        }
        if($data['element_id'] == 24 && empty($data['value'])){
            $data['value'] = 'Nothing is included here';
        }
    }

    MachForm Founder

    Posted 11 years ago #
  4. MvdL79
    Member

    Thanks Yuniar and I send you an email.

    Posted 11 years ago #

RSS feed for this topic

Reply