Expand my Community achievements bar.

Adaptive Form Components Customization problem

Avatar

Level 3

Hi, 

How can we customize guidetextbox component with out breaking existing functionality,We need change only appearance of textbox .

Problem: If we add new <div> elements to existing code, Additional attributes added to <Div> element instead of <Input> due to this problem we are not able to get user entered data during form submission. 

Can someone please suggest how to customize form components.

/libs/fd/af/components/guidetextbox/widget.jsp

          <c:otherwise>

                 <div class="abc">
                 <input type="text" id="${guideid}${'_widget'}" name="${guide:encodeForHtmlAttr(guideField.name,xssAPI)}" ......../>

               </div>

            </c:otherwise>

2 Replies

Avatar

Employee

Hi,

It is recommended not to make changes in the /libs branch. Any changes you do make may be lost, because this branch is liable to changes whenever you:

  • upgrade on your instance
  • apply a hotfix
  • install a feature pack

Regarding changing appearance of the text box, you can use inline styling or themes to change the appearance of a component of an adaptive form. See the following articles for more details

I hope it answers your query.

Regards,
Khushwant Singh

Avatar

Level 3

Thanks Khushwant, I will look into provided links.