Back to Blog

    Developer Blog

    Rename an existing form field programmatically

    Foxit Quick PDF Library

    It is possible to rename a form field programmatically using the SetFormFieldChildTitle function in Foxit Quick PDF Library.

    Say for example that you have a parent field called Details, with child fields Name and Address, the full field names will be:

    Details.Name
    Details.Address
    

    If you wanted to change Details.Name to Details.FirstName you can use:

    int FieldID = QP.FindFormFieldByTitle("Details.Name");
    QP.SetFormFieldChildTitle(FieldID, "FirstName");
    

    This article refers to a deprecated product. If you are looking for support for Foxit PDF SDK, please click here.