I have one detail page where i have inserted inline VF page which is used for text search and save the results of text search into some custom field of detail VF page.There are few text fields inside inline Vf page.I want to make those fields mandatory inside inline VF page.is it possible.Or any other solution.
I can think of 4 options:
- Create a validation rule for new records.
- Use a Before Insert Trigger. Either of these two will cause the fields to become required.
You can also add code to the inline VF fields to apply the required attribute before the page can be saved.
Finally, if wrapped in a form tag, you can use the features from something like the jQuery validation plug-in that won't allow it to "submit" until those fields have been completed.
Since you've not provided code, those are the best options I can think of that would apply to the situation you've presented.