• Resolved kardjali

    (@kardjali)


    Is there a way to set a custom id for any field within the form ? For free or any of the paid versions ? I want to execute a function, get the values of the form fields and perform some custom code on top of that. But I don’t want the code to rely on nonsense IDs like field_1-4 for example.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @kardjali

    Every field in the form has a unique name with the format fieldname#, like fieldname1, fieldname2, etc.

    If you have implemented a function like function qwerty(firs_name, last_name){...} and the fields in the form that collect the first name and last name are the fieldname1 and fieldname2, respectively. You can insert a calculated field to call your function by passing the correct parameters. For example, the equation could be qwerty(fieldname1, fieldname2);

    Best regards.

    Thread Starter kardjali

    (@kardjali)

    Hi. Thank you for the quick response. Indeed my code can pick up the values from the fields. But I just want the identifiers to be more user friendly and self-explanatory. So I see there’s no way to do that. Thanks anyway.

    Plugin Author codepeople

    (@codepeople)

    Hello @kardjali

    You can pick up the fields’ values with the plugin operations. For example, by using the getField operation. Assuming you want to get the value of the fieldname1 in a context different from the equation. You can use getField('fieldname1').val();

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom ID for fields’ is closed to new replies.